code: def imported_dataset_collection_cls(
      name: str,
  ) -> Type[RegisteredDatasetCollection]:
      """Returns the Registered dataset class."""
      if name in _ABSTRACT_DATASET_COLLECTION_REGISTRY:
          raise AssertionError(
              f"DatasetCollection {name} is an abstract class."
          )
  
      if not is_dataset_collection(name):
          raise DatasetCollectionNotFoundError(
              f"DatasetCollection {name} not found."
          )
  
      dataset_collection_cls = _DATASET_COLLECTION_REGISTRY[name]
  
      return dataset_collection_cls
  
imports: import abc
  import collections
  import contextlib
  import functools
  import importlib
  import inspect
  import os.path
  from typing import ClassVar, Dict, Iterator, List, Type, Text, Tuple
  from etils import epath
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import visibility
  from tensorflow_datasets.core.utils import py_utils
  from tensorflow_datasets.core.utils import resource_utils
label_desc: Use image node_id 4 for calling a global function with example usage: imported_dataset_collection_cls(name) and returns: dataset_collection_cls