code: def files_with_labels_and_duplicated_label_key_in_metadata(
      tmp_path, auto_text_file
  ):
      data_dir = (
          tmp_path / "files_with_labels_and_label_key_in_metadata"
      )
      data_dir.mkdir(parents=True, exist_ok=True)
      subdir_class_0 = data_dir / "class0"
      subdir_class_0.mkdir(parents=True, exist_ok=True)
      subdir_class_1 = data_dir / "class1"
      subdir_class_1.mkdir(parents=True, exist_ok=True)
  
      filename = subdir_class_0 / "file_class0.txt"
      shutil.copyfile(auto_text_file, filename)
      filename2 = subdir_class_1 / "file_class1.txt"
      shutil.copyfile(auto_text_file, filename2)
  
      metadata_filename = tmp_path / data_dir / "metadata.jsonl"
      metadata = textwrap.dedent(
          """\
          {"file_name": "class0/file_class0.txt", "additional_feature": "First dummy file", "label": "CLASS_0"}
          {"file_name": "class1/file_class1.txt", "additional_feature": "Second dummy file", "label": "CLASS_1"}
          """
      )
      with open(metadata_filename, "w", encoding="utf-8") as f:
          f.write(metadata)
  
      return str(filename), str(filename2), str(metadata_filename)
  
imports: import importlib
  import shutil
  import textwrap
  import pytest
  from datasets import ClassLabel, DownloadManager, Features, Value
  from datasets.data_files import DataFilesDict, get_data_patterns
  from datasets.download.streaming_download_manager import StreamingDownloadManager
  from datasets.packaged_modules.folder_based_builder.folder_based_builder import FolderBasedBuilder, FolderBasedBuilderConfig
  from datasets.tasks import TextClassification
label_desc: Use image node_id 6 for calling a global function with example usage: files_with_labels_and_duplicated_label_key_in_metadata(tmp_path, auto_text_file) and returns: str,  str,  str