code: def test_generate_examples_with_labels(
      data_files_with_labels_no_metadata, cache_dir
  ):
      # there are no metadata.jsonl files in this test case
      audiofolder = AudioFolder(
          data_files=data_files_with_labels_no_metadata,
          cache_dir=cache_dir,
          drop_labels=False,
      )
      audiofolder.download_and_prepare()
      assert audiofolder.info.features == Features(
          {"audio": Audio(), "label": ClassLabel(names=["fr", "uk"])}
      )
      dataset = list(audiofolder.as_dataset()["train"])
      label_feature = audiofolder.info.features["label"]
  
      assert dataset[0]["label"] == label_feature._str2int["fr"]
      assert dataset[1]["label"] == label_feature._str2int["uk"]
  
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 9 for calling a global function with example usage: test_generate_examples_with_labels(data_files_with_labels_no_metadata, cache_dir) without return types