code: def get_type(mime=None, ext=None):
      
      for kind in types:
          if kind.extension is ext or kind.mime is mime:
              return kind
      return None
docs: Returns the file type instance searching by
      MIME type or file extension.
  
      Args:
          ext: file extension string. E.g: jpg, png, mp4, mp3
          mime: MIME string. E.g: image/jpeg, video/mpeg
  
      Returns:
          The matched file type instance. Otherwise None.