code: def get_samples(
      audio_file: str, target_sr: int = 16000, dtype: str = "float32"
  ):
      """
      Read the samples from the given audio_file path. If not specified, the input audio file is automatically
      resampled to 16kHz.
  
      Args:
          audio_file (str):
              Path to the input audio file
          target_sr (int):
              Targeted sampling rate
      Returns:
          samples (numpy.ndarray):
              Time-series sample data from the given audio file
      """
      with sf.SoundFile(audio_file, "r") as f:
          samples = f.read(dtype=dtype)
          if f.samplerate != target_sr:
              samples = librosa.core.resample(
                  samples, orig_sr=f.samplerate, target_sr=target_sr
              )
          samples = samples.transpose()
      return samples
  
imports: import math
  from typing import Iterable, Optional, Union
  import librosa
  import numpy
  import numpy.typing
  import scipy
  import soundfile
  import torch
  from scipy.spatial.distance import pdist, squareform
  from nemo.utils import logging
label_desc: Use image node_id 1 for calling a global function with example usage: get_samples(audio_file, target_sr, dtype) and returns: samples