code: def test_collection_datasets_section(
      dummy_dc_loader: tfds.core.DatasetCollectionLoader,
  ):  # pylint: disable=redefined-outer-name
      datasets_section = (
          collection_markdown_builder.CollectionDatasetsSection()
      )
      expected_lines = [
          (
              "    * `a`:"
              " [`a/c:1.3.5`](https://www.tensorflow.org/datasets/catalog/a#c)"
          ),
          (
              "    * `b`:"
              " [`b/d:2.4.8`](https://www.tensorflow.org/datasets/catalog/b#d)"
          ),
          (
              "    * `c`:"
              " [`c/e:3.5.7`](https://www.tensorflow.org/datasets/catalog/c#e)"
          ),
      ]
      assert datasets_section.content(
          loader=dummy_dc_loader
      ) == "\n".join(expected_lines)
  
file_path: datasets/tensorflow_datasets/scripts/documentation/collection_markdown_builder_test.py
imports: import textwrap
  import pytest
  import tensorflow_datasets
  from tensorflow_datasets import testing
  from tensorflow_datasets.scripts.documentation import collection_markdown_builder
label_desc: Use image node_id 6 for calling a global function with example usage: test_collection_datasets_section(dummy_dc_loader) without return types