code: def test_get_collection(dummy_dc):
      assert sorted(dummy_dc.get_collection().keys()) == ["a", "b", "c"]
      assert sorted(
          dummy_dc.get_collection(version="2.0.0").keys()
      ) == [
          "a",
          "b",
          "c",
      ]
      assert sorted(
          dummy_dc.get_collection(version="1.0.0").keys()
      ) == ["a", "b"]
  
file_path: datasets/tensorflow_datasets/core/dataset_collection_builder_test.py
imports: from unittest import mock
  from etils import epath
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import dataset_collection_builder
  from tensorflow_datasets.core.utils import version
label_desc: Use image node_id 8 for calling a global function with example usage: test_get_collection(dummy_dc) without return types