code: def _read_metadata(file_path, configs):
      meta = torchaudio.info(file_path)
      if meta.num_channels > 1:
          channel = np.random.randint(0, meta.num_channels - 1)
      else:
          channel = 0
      assert (
          meta.sample_rate == configs["samplerate"]
      ), "file samplerate is different from the one specified"
  
      return meta, channel
  
imports: import numpy
  from pathlib import Path
  import json
  from tqdm import tqdm
  import torchaudio
label_desc: Use image node_id 1 for calling a global function with example usage: _read_metadata(file_path, configs) and returns: meta,  channel