code: def test_generate_examples_with_metadata_in_wrong_location(
      audio_file, audio_file_with_metadata, drop_metadata
  ):
      _, audio_metadata_file = audio_file_with_metadata
      audiofolder = AudioFolder(
          drop_metadata=drop_metadata,
          data_files={"train": [audio_file, audio_metadata_file]},
      )
      gen_kwargs = audiofolder._split_generators(
          StreamingDownloadManager()
      )[0].gen_kwargs
      generator = audiofolder._generate_examples(**gen_kwargs)
      if not drop_metadata:
          with pytest.raises(ValueError):
              list(generator)
      else:
          assert all(
              example.keys() == {"audio"}
              and all(val is not None for val in example.values())
              for _, example in generator
          )
  
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 13 for calling a global function with example usage: test_generate_examples_with_metadata_in_wrong_location(audio_file, audio_file_with_metadata, drop_metadata) without return types