code: def get_classes(dataset) -> list:
      """Get class names of a dataset."""
      alias2name = {}
      for name, aliases in dataset_aliases.items():
          for alias in aliases:
              alias2name[alias] = name
  
      if is_str(dataset):
          if dataset in alias2name:
              labels = eval(alias2name[dataset] + "_classes()")
          else:
              raise ValueError(f"Unrecognized dataset: {dataset}")
      else:
          raise TypeError(
              f"dataset must a str, but got {type(dataset)}"
          )
      return labels
  
file_path: mmdetection/mmdet/evaluation/functional/class_names.py
imports: from mmengine.utils import is_str
label_desc: Use image node_id 13 for calling a global function with example usage: get_classes(dataset) and returns: labels