code: def test_imported_dataset_collection_cls():
      existent = "empty_dataset_collection_builder"
      abstract = "abstract_dataset_collection_builder"
      nonexistent = "nonexistent_dataset_collection_builder"
  
      cls = registered.imported_dataset_collection_cls(existent)
      assert isinstance(cls, type(EmptyDatasetCollectionBuilder))
  
      error_msg = f"DatasetCollection {abstract} is an abstract class."
      with pytest.raises(AssertionError, match=error_msg):
          registered.imported_dataset_collection_cls(abstract)
  
      with pytest.raises(registered.DatasetCollectionNotFoundError):
          registered.imported_dataset_collection_cls(nonexistent)
  
imports: import abc
  import re
  from unittest import mock
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core import load
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import py_utils
  import tensorflow_datasets.public_api
  from tensorflow_datasets.testing.dummy_config_based_datasets.dummy_ds_1 import dummy_ds_1_dataset_builder
label_desc: Use image node_id 15 for calling a global function with example usage: test_imported_dataset_collection_cls() without return types