code: def known_formats(use: Union[Serializer, Parser]=Serializer, include_mime_types: bool = False) -> List[str]:
      
      return sorted([name for name, kind in plugin._plugins.keys()
                     if kind == use and (include_mime_types or '/' not in name)])
docs: Return a list of available formats in rdflib for the required task
      :param use: task (typically Serializer or Parser)
      :param include_mime_types: whether mime types are included in the return list
      :return: list of formats