code: def test_read_idxs():
      batch_size = 10
      reader_seed = 12345
  
      @pipeline_def(device_id=0, num_threads=4)
      def nemo_asr_reader_read_idxs(reader_seed=reader_seed):
          audio, idx = fn.readers.nemo_asr(
              manifest_filepaths=[nemo_asr_manifest],
              random_shuffle=True,
              seed=reader_seed,
              read_sample_rate=False,
              read_text=False,
              read_idxs=True,
          )
          return audio, idx
  
      seed = 12345
      pipe1 = nemo_asr_reader_read_idxs(
          batch_size=batch_size, reader_seed=seed
      )
      pipe1.build()
      pipe2 = nemo_asr_reader_read_idxs(
          batch_size=batch_size, reader_seed=seed
      )
      pipe2.build()
  
      total_samples = len(names)
  
      for iter in range(3):
          audio1, idx1 = pipe1.run()
          audio2, idx2 = pipe2.run()
          for s in range(batch_size):
              np.testing.assert_array_equal(
                  np.array(audio1[s]), np.array(audio2[s])
              )
              np.testing.assert_array_equal(
                  np.array(idx1[s]), np.array(idx2[s])
              )
              idx = np.array(idx1[s])[0]
              assert idx >= 0 and idx < total_samples
  
imports: from nvidia.dali import Pipeline, pipeline_def
  from nvidia.dali import fn
  import nvidia.dali.types
  import scipy.io.wavfile
  import numpy
  import json
  import tempfile
  import os
  from test_audio_decoder_utils import generate_waveforms
  from test_utils import compare_pipelines
label_desc: Use image node_id 8 for calling a global function with example usage: test_read_idxs() and returns: audio,  idx