code: def test_huggingface_dataset_documentation():
      dataset = _create_dataset_package("community1", "ds1")
      templates = _create_templates()
      dataset_doc = (
          build_community_catalog.HuggingfaceDatasetDocumentation(
              dataset=dataset,
              templates=templates,
              options=_create_options(),
          )
      )
      assert dataset_doc.extra_links() == [
          "[Code](https://github.com/huggingface/datasets/blob/master/datasets/ds1)",
          "[Huggingface](https://huggingface.co/datasets/ds1)",
      ]
      assert dataset_doc.huggingface_raw_info_url() == (
          "https://huggingface.co/datasets/ds1/raw/main/dataset_infos.json"
      )
  
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 8 for calling a global function with example usage: test_huggingface_dataset_documentation() without return types