code: def __check_length(
      array: np.ndarray,
      sample_rate: int,
      max_length: int,
      min_length: int,
      name: str,
      error_code_max: Code,
      error_code_min: Code,
  ) -> None:
      length = size(array)
      debug(
          f"{name} audio length: {length} samples ({time_str(length, sample_rate)})"
      )
      if length > max_length:
          raise ModuleError(error_code_max)
      elif length < min_length:
          raise ModuleError(error_code_min)
  
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 2 for calling a global function with example usage: __check_length(array, sample_rate, max_length, min_length, name, error_code_max, error_code_min) without return types