code: def get_mimetype(self, path):
          '''
          Get mimetype of given path calling all registered mime functions (and
          default ones).
  
          :param path: filesystem path of file
          :type path: str
          :returns: mimetype
          :rtype: str
          '''
          for fnc in self._mimetype_functions:
              mime = fnc(path)
              if mime:
                  return mime
          return mimetype.by_default(pathf get_mimetype(self, path):
          '''
          Get mimetype of given path calling all registered mime functions (and
          default ones).
  
          :param path: filesystem path of file
          :type path: str
          :returns: mimetype
          :rtype: str
          '''
          for fnc in self._mimetype_functions:
              mime = fnc(path)
              if mime:
                  return mime
          return mimetype.by_default(path)
docs: Get mimetype of given path calling all registered mime functions (and
          default ones).
  
          :param path: filesystem path of file
          :type path: str
          :returns: mimetype
          :rtype: str