code: def guess_content_type_and_encoding(path):
      
      for ext, content_type in _EXTENSION_TO_MIME_TYPE.items():
          if path.endswith(ext):
              return content_type
  
      content_type, encoding = mimetypes.guess_type(path)
      content_type = content_type or "application/binary"
      return content_type, encoding
docs: Guess the content type of a path, using ``mimetypes``.
  
      Falls back to "application/binary" if no content type is found.
  
      Args:
          path (str): the path to guess the mimetype of
  
      Returns:
          str: the content type of the file