code: def test_huggingface_formatter_to_toc_markdown(get_content_mock):
      get_content_mock.return_value = "{}"
      namespace1 = "community1"
      datasets = [
          _create_dataset_package(namespace1, "ds1"),
          _create_dataset_package(namespace1, "ds2"),
      ]
      templates = _create_templates(namespace_toc_template="{name}")
  
      formatter = build_community_catalog.HuggingfaceFormatter(
          namespace=namespace1,
          datasets=datasets,
          templates=templates,
          options=_create_options(),
      )
      assert formatter.to_toc_markdown() == "Community1"
  
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 11 for calling a global function with example usage: test_huggingface_formatter_to_toc_markdown(get_content_mock) without return types