code: def test_data_dir_register():
      register = register_path.DataDirRegister(
          namespace_to_data_dirs={"ns1": [epath.Path("/path/ns1")]}
      )
      assert {"ns1"} == register.namespaces
  
imports: from etils import epath
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core.community import register_path
label_desc: Use image node_id 1 for calling a global function with example usage: test_data_dir_register() without return types