code: def test_build_catalog(tmp_path: pathlib.Path):
      """Tests that build_catalog correctly generates the index."""
      build_catalog.build_catalog(
          datasets=["mnist", "coco"],
          catalog_dir=tmp_path,
          doc_util_paths=doc_utils.DocUtilPaths(
              fig_base_path=None,
              df_base_path=None,
              nightly_path=None,
          ),
          include_collections=False,
      )
      assert sorted(f.name for f in tmp_path.iterdir()) == [
          "_toc.yaml",
          "coco.md",
          "mnist.md",
          "overview.md",
      ]
  
      content = tmp_path.joinpath("_toc.yaml").read_text()
      assert "coco" in content
      assert "mnist" in content
  
      content = tmp_path.joinpath("overview.md").read_text()
      assert "coco" in content
      assert "mnist" in content
  
imports: import pathlib
  import tensorflow_datasets
  from tensorflow_datasets.scripts.documentation import build_catalog
  from tensorflow_datasets.scripts.documentation import doc_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_build_catalog(tmp_path) without return types