code: def test_dataset_documentation_links():
      dataset = _create_dataset_package("community1", "ds1")
      templates = _create_templates()
      dataset_doc = build_community_catalog.DatasetDocumentation(
          dataset=dataset,
          templates=templates,
          options=_create_options(),
      )
      expected_code_url = "[Code](github://huggingface/datasets/tree/master/datasets/ds1)"
      assert dataset_doc.code_url() == expected_code_url
      assert dataset_doc.extra_links() == [expected_code_url]
      assert (
          dataset_doc.format_extra_links(prefix="* ", infix=" / ")
          == f"* {expected_code_url}"
      )
  
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 5 for calling a global function with example usage: test_dataset_documentation_links() without return types