code: def resolve_audio_filepaths(args):
      # get audio filenames
      if args.audio_dir is not None:
          filepaths = list(
              glob.glob(
                  os.path.join(
                      args.audio_dir.audio_dir, f"*.{args.audio_type}"
                  )
              )
          )
      else:
          # get filenames from manifest
          filepaths = []
          with open(args.dataset_manifest, "r", encoding="utf-8") as f:
              for line in f:
                  item = json.loads(line)
                  filepaths.append(item["audio_filepath"])
  
      logging.info(f"\nTranscribing {len(filepaths)} files...\n")
  
      return filepaths
  
file_path: NeMo/examples/asr/export/transducer/infer_transducer_ts.py
imports: import glob
  import json
  import os
  import tempfile
  from argparse import ArgumentParser
  import torch
  from omegaconf import OmegaConf
  from tqdm import tqdm
  from nemo.collections.asr.metrics.wer import word_error_rate
  from nemo.collections.asr.models import ASRModel
  from nemo.collections.asr.parts.submodules.rnnt_greedy_decoding import TorchscriptGreedyBatchedRNNTInfer
  from nemo.utils import logging
label_desc: Use image node_id 4 for calling a global function with example usage: resolve_audio_filepaths(args) and returns: filepaths