code: def data_dir_with_two_subdirs(tmp_path):
      data_dir = tmp_path / "data_dir_with_two_configs_in_metadata"
      cats_data_dir = data_dir / "cats"
      cats_data_dir.mkdir(parents=True)
      dogs_data_dir = data_dir / "dogs"
      dogs_data_dir.mkdir(parents=True)
  
      with open(cats_data_dir / "cat.jpg", "wb") as f:
          f.write(b"this_is_a_cat_image_bytes")
      with open(dogs_data_dir / "dog.jpg", "wb") as f:
          f.write(b"this_is_a_dog_image_bytes")
  
      return str(data_dir)
  
file_path: datasets/tests/test_metadata_util.py
imports: import re
  import sys
  import tempfile
  import unittest
  from pathlib import Path
  import pytest
  import yaml
  from huggingface_hub import DatasetCard, DatasetCardData
  from datasets.config import METADATA_CONFIGS_FIELD
  from datasets.info import DatasetInfo
  from datasets.utils.metadata import MetadataConfigs
label_desc: Use image node_id 2 for calling a global function with example usage: data_dir_with_two_subdirs(tmp_path) and returns: str