code: def __check_channels(
      array: np.ndarray,
      info_code_mono: Code,
      error_code_not_stereo: Code,
  ) -> np.ndarray:
      if is_mono(array):
          info(info_code_mono)
          array = mono_to_stereo(array)
      elif not is_stereo(array):
          raise ModuleError(error_code_not_stereo)
      return array
  
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 3 for calling a global function with example usage: __check_channels(array, info_code_mono, error_code_not_stereo) and returns: array