code: def _get_ds_meta(self, dataset: DatasetDict):
      if isinstance(dataset, DatasetDict):
          try:
              dataset_info = vars(dataset[HFDataset.DEFAULT_KEY]._info)
          except KeyError:
              raise KeyError(
                  f"Failed to get dataset key '{HFDataset.DEFAULT_KEY}'"
              )
      elif isinstance(dataset, Dataset):
          dataset_info = vars(dataset._info)
      else:
          raise NotImplementedError(
              f"Failed to find dataset instance of type {type(dataset)}"
          )
      return {
          "description": dataset_info.get("description"),
          "citation": dataset_info.get("citation"),
          "homepage": dataset_info.get("homepage"),
          "license": dataset_info.get("license"),
          "features": self._get_features(dataset_info),
          "post_processed": str(dataset_info.get("post_processed")),
          "supervised_keys": str(dataset_info.get("supervised_keys")),
          "task_templates": self._get_task_templates(dataset_info),
          "builder_name": dataset_info.get("builder_name"),
          "config_name": dataset_info.get("config_name"),
          "version": str(dataset_info.get("version")),
          "splits": self._get_splits(dataset_info),
          "download_checksums": dataset_info.get("download_checksums"),
          "download_size": dataset_info.get("download_size"),
          "post_processing_size": dataset_info.get(
              "post_processing_size"
          ),
          "dataset_size": dataset_info.get("dataset_size"),
          "size_in_bytes": dataset_info.get("size_in_bytes"),
      }
  
file_path: aim/aim/sdk/objects/plugins/hf_datasets_metadata.py
imports: from datasets import Dataset, DatasetDict
  from aim.storage.object import CustomObject
  from logging import getLogger
label_desc: Use image node_id 2 for calling the HFDataset obj's underlying member method code with example usage: obj._get_ds_meta(dataset) and returns: dict