code: def get_readers(scps: List[str], dtype: str):
      # Determine the audio format (sound or kaldi_ark)
      with open(scps[0], "r") as f:
          line = f.readline()
          filename = Path(line.strip().split(maxsplit=1)[1]).name
      if re.fullmatch(r".*\.ark(:\d+)?", filename):
          # xxx.ark or xxx.ark:123
          readers = [kaldi_loader(f, float_dtype=dtype) for f in scps]
          audio_format = "kaldi_ark"
      else:
          readers = [SoundScpReader(f, dtype=dtype) for f in scps]
          audio_format = "sound"
      return readers, audio_format
  
imports: import argparse
  import logging
  import re
  import sys
  from pathlib import Path
  from typing import Dict, List, Union
  import numpy
  import torch
  from mir_eval.separation import bss_eval_sources
  from pystoi import stoi
  from typeguard import check_argument_types
  from espnet2.enh.loss.criterions.time_domain import SISNRLoss
  from espnet2.fileio.datadir_writer import DatadirWriter
  from espnet2.fileio.sound_scp import SoundScpReader
  from espnet2.train.dataset import kaldi_loader
  from espnet2.utils import config_argparse
  from espnet2.utils.types import str2bool
  from espnet.utils.cli_utils import get_commandline_args
label_desc: Use image node_id 1 for calling a global function with example usage: get_readers(scps, dtype) and returns: readers,  audio_format