code: def test_mock_import(tmp_path: pathlib.Path):
      with hg_wrapper.mock_huggingface_import():
          from tensorflow_datasets.testing.huggingface import (
              dummy_dataset,
          )  # pylint: disable=g-import-not-at-top
  
      builder = dummy_dataset.HFDataset(data_dir=tmp_path)
      builder.download_and_prepare()
      assert builder.info.splits["train"].num_examples == 10
      assert builder.info.splits["validation"].num_examples == 5
      # TFDS re-order the config so the default one is the first one, as HF
      # explicitly define the default config through `DEFAULT_CONFIG_NAME`
      assert builder.default_builder_config.name == "config2"
  
imports: import pathlib
  import tensorflow
  from tensorflow_datasets.core.community import huggingface_wrapper
label_desc: Use image node_id 3 for calling a global function with example usage: test_mock_import(tmp_path) without return types