code: def _check_3(arr, funcname):
      if arr.ndim != 3 or arr.shape[2] != 3:
          raise ValueError(
              "mahotas.%s: this function expects an array of shape (h, w, 3), received an array of shape %s."
              % (funcname, arr.shape)
          )
  
file_path: mahotas/mahotas/internal.py
imports: import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: _check_3(arr, funcname) without return types