code: def resample(audio, source_rate, target_rate):
      if librosa:
          return librosa.core.resample(
              audio, orig_sr=source_rate, target_sr=target_rate
          )
      if samplerate:
          ratio = float(target_rate) / source_rate
          return samplerate.resample(audio, ratio, "sinc_best")
  
imports: import importlib
  import math
  import queue
  import time
  from absl import logging
  import numpy
  import pyaudio
  import scipy
  import six
label_desc: Use image node_id 1 for calling a global function with example usage: resample(audio, source_rate, target_rate) and returns: librosa, samplerate