code: def __check_sample_rate(
      array: np.ndarray,
      sample_rate: int,
      required_sample_rate: int,
      name: str,
      log_handler,
      log_code: Code,
  ) -> (np.ndarray, int):
      if sample_rate != required_sample_rate:
          debug(
              f"Resampling {name} audio from {sample_rate} Hz to {required_sample_rate} Hz..."
          )
          array = resample(
              array, sample_rate, required_sample_rate, axis=0
          )
          log_handler(log_code)
      return array, required_sample_rate
  
file_path: matchering/matchering/checker.py
imports: import numpy
  from resampy import resample
  from .log import Code, warning, info, debug, ModuleError
  from .None import Config
  from .dsp import size, is_mono, is_stereo, mono_to_stereo, count_max_peaks
  from .utils import time_str
label_desc: Use image node_id 1 for calling a global function with example usage: __check_sample_rate(array, sample_rate, required_sample_rate, name, log_handler, log_code) and returns: array,  required_sample_rate