class_docstr: Information about a dataset collection.
  
  `DatasetCollectionInfo` documents a dataset collection, including its name,
  description, release notes and citations.
  
  Attributes:
    name: The name of the dataset collection.
    description: A markdown-formatted description of the dataset collection.
    release_notes: A mapping of dataset collection's versions with their
      corresponding release notes.
    citation: Optional citation for the dataset collection.
    homepage: Optional homepage for the dataset collection.
class_docstr_tok: ["Information","about","a","dataset","collection",".","`","DatasetCollectionInfo","`","documents","a","dataset","collection",",","including","its","name",",","description",",","release","notes","and","citations",".","Attributes",":","name",":","The","name","of","the","dataset","collection",".","description",":","A","markdown-formatted","description","of","the","dataset","collection",".","release_notes",":","A","mapping","of","dataset","collection","'s","versions","with","their","corresponding","release","notes",".","citation",":","Optional","citation","for","the","dataset","collection",".","homepage",":","Optional","homepage","for","the","dataset","collection","."]
docstr: Creates a DatasetCollectionInfo instance based on class information.
docstr_tok: ["Creates","a","DatasetCollectionInfo","instance","based","on","class","information","."]
code: def from_cls(
      cls,
      dataset_collection_class: Type["DatasetCollection"],
      release_notes: Mapping[str, str],
      description: Optional[str] = None,
      citation: Optional[str] = None,
      homepage: Optional[str] = None,
  ) -> "DatasetCollectionInfo":
      """Creates a DatasetCollectionInfo instance based on class information."""
      name: str = naming.camelcase_to_snakecase(
          dataset_collection_class.__name__
      )
      if not description:
          description = get_file_content_from_dataset_folder(
              dataset_collection_class,
              DESCRIPTION_FILE,
              raise_error_if_fails=True,
          )
      if not citation:
          citation = get_file_content_from_dataset_folder(
              dataset_collection_class, CITATIONS_FILE
          )
      return cls(
          name=name,
          release_notes=release_notes,
          description=description,
          citation=citation,
          homepage=homepage,
      )
  
imports: import dataclasses
  import inspect
  from typing import Any, List, Mapping, Optional, Type, Union
  from etils import epath
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core.utils import version
label_desc: Use image node_id 1 for calling the DatasetCollectionInfo obj's underlying member method code with example usage: obj.from_cls(cls, dataset_collection_class, release_notes, description, citation, homepage) and returns: cls