code: def test_data_files_with_wrong_metadata_file_name(
      cache_dir, tmp_path, audio_file
  ):
      data_dir = tmp_path / "data_dir_with_bad_metadata"
      data_dir.mkdir(parents=True, exist_ok=True)
      shutil.copyfile(audio_file, data_dir / "audio_file.wav")
      audio_metadata_filename = (
          data_dir / "bad_metadata.jsonl"
      )  # bad file
      audio_metadata = textwrap.dedent(
          """\
          {"file_name": "audio_file.wav", "text": "Audio transcription"}
          """
      )
      with open(audio_metadata_filename, "w", encoding="utf-8") as f:
          f.write(audio_metadata)
  
      data_files_with_bad_metadata = DataFilesDict.from_patterns(
          get_data_patterns(str(data_dir)), data_dir.as_posix()
      )
      audiofolder = AudioFolder(
          data_files=data_files_with_bad_metadata, cache_dir=cache_dir
      )
      audiofolder.download_and_prepare()
      dataset = audiofolder.as_dataset(split="train")
      # check that there are no metadata, since the metadata file name doesn't have the right name
      assert "text" not in dataset.column_names
  
imports: import shutil
  import textwrap
  import librosa
  import numpy
  import pytest
  import soundfile
  from datasets import Audio, ClassLabel, Features, Value
  from datasets.data_files import DataFilesDict, get_data_patterns
  from datasets.download.streaming_download_manager import StreamingDownloadManager
  from datasets.packaged_modules.audiofolder.audiofolder import AudioFolder
  from ..utils import require_sndfile
label_desc: Use image node_id 18 for calling a global function with example usage: test_data_files_with_wrong_metadata_file_name(cache_dir, tmp_path, audio_file) without return types