code: def audio_and_texts(test_data_dir):
      # get filenames and reference texts from manifest
      filepaths = []
      reference_texts = []
      manifest = Path(test_data_dir) / Path("asr/an4_val.json")
      with open(manifest, "r") as f:
          for line in f:
              item = json.loads(line)
              # alaptev: maybe fix those paths in the manifest?
              audio_file = Path(
                  item["audio_filepath"].replace("/data/", "/.data/")
              )
              filepaths.append(str(audio_file.absolute()))
              reference_texts.append(item["text"])
      return filepaths, reference_texts
  
imports: import json
  import math
  import tempfile
  from pathlib import Path
  import numpy
  import pytest
  from omegaconf import OmegaConf
  from pytorch_lightning import Trainer
  from nemo.collections.asr.models import ASRModel, EncDecCTCModelBPE, EncDecRNNTBPEModel
  from nemo.collections.asr.parts.submodules.ctc_decoding import CTCDecodingConfig
  from nemo.collections.asr.parts.submodules.ctc_greedy_decoding import GreedyCTCInferConfig
  from nemo.collections.asr.parts.submodules.rnnt_decoding import RNNTDecodingConfig
  from nemo.collections.asr.parts.submodules.rnnt_greedy_decoding import GreedyBatchedRNNTInferConfig
  from nemo.collections.asr.parts.utils.asr_confidence_benchmarking_utils import run_confidence_benchmark
  from nemo.collections.asr.parts.utils.asr_confidence_utils import ConfidenceConfig
label_desc: Use image node_id 3 for calling a global function with example usage: audio_and_texts(test_data_dir) and returns: filepaths,  reference_texts