docs: def guess_mimetype(filename):
      """Map extra mimetype with the encoding provided.
  
      :returns: The extra mimetype.
      """
      m, encoding = mimetypes.guess_type(filename)
      if encoding:
          m = ENCODING_MIMETYPES.get(encoding, None)
      return m or 'application/octet-stream'