code: def dummy_register():
      """Dummy register."""
  
      with tempfile.TemporaryDirectory() as tmp_path:
          tmp_path = pathlib.Path(tmp_path)
  
          source_path = (
              utils.tfds_path()
              / "testing/dummy_dataset/dummy_dataset.py"
          )
  
          # Single-file dataset package (without checksums)
          src_single = dataset_sources.DatasetSource.from_json(
              os.fspath(source_path)
          )
  
          # Multi-file dataset package (with checksums)
          src_multi = dataset_sources.DatasetSource.from_json(
              {
                  "root_path": os.fspath(source_path.parent),
                  "filenames": ["checksums.tsv", "dummy_dataset.py"],
              }
          )
          src_multi_json = json.dumps(
              src_multi.to_json()
          )  # `dict` -> `str`
  
          # Create the remote index content
          # Note the absence of `"` for the `src_multi_json` as it is parsed as `dict`
          content = textwrap.dedent(
              f"""\
          {{"name": "kaggle:dummy_dataset", "source": "{src_single.to_json()}"}}
          {{"name": "kaggle:ds1", "source": "{src_single.to_json()}"}}
          {{"name": "mlds:dummy_dataset", "source": {src_multi_json}}}
          """
          )
          dummy_path = tmp_path / "dummy-community-datasets.toml"
          dummy_path.write_text(content)
  
          with mock_cache_path(tmp_path / "cache"):
              yield register_package.PackageRegister(path=dummy_path)
  
imports: import contextlib
  import datetime
  import json
  import os
  import pathlib
  import sys
  import tempfile
  import textwrap
  from typing import Iterator
  from unittest import mock
  from etils import epath
  import pytest
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.community import cache
  from tensorflow_datasets.core.community import dataset_sources
  from tensorflow_datasets.core.community import register_package
label_desc: Use image node_id 2 for calling a global function with example usage: dummy_register() without return types