code: def test_enrich_filename_template_different_dataset_name():
      filename_template = naming.ShardedFileTemplate(
          data_dir=_PATH, template="{DATASET}", dataset_name="imagenet"
      )
      file_infos = [naming.FilenameInfo(dataset_name="mnist")]
      with pytest.raises(ValueError, match="Detected dataset name.+"):
          write_metadata_utils._enrich_filename_template(
              filename_template=filename_template, file_infos=file_infos
          )
  
file_path: datasets/tensorflow_datasets/core/folder_dataset/write_metadata_utils_test.py
imports: import pathlib
  from etils import epath
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import read_only_builder
  from tensorflow_datasets.core.folder_dataset import write_metadata_utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_enrich_filename_template_different_dataset_name() without return types