code: def test_dataset_documentation_to_toc_markdown():
      dataset = _create_dataset_package("community1", "ds1")
      templates = _create_templates()
      dataset_doc = build_community_catalog.DatasetDocumentation(
          dataset=dataset,
          templates=templates,
          options=_create_options(),
      )
      assert (
          dataset_doc.to_toc_markdown()
          == "ds1 ([Code](github://huggingface/datasets/tree/master/datasets/ds1))"
      )
  
file_path: datasets/tensorflow_datasets/scripts/documentation/build_community_catalog_test.py
imports: from unittest import mock
  from etils import epath
  import tensorflow_datasets
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.scripts.documentation import build_community_catalog
label_desc: Use image node_id 7 for calling a global function with example usage: test_dataset_documentation_to_toc_markdown() without return types