code: def _check_2(arr, funcname):
      if arr.ndim != 2:
          raise ValueError(
              "mahotas.%s: this function can only handle 2D arrays (passed array with shape %s)."
              % (funcname, arr.shape)
          )
  
file_path: mahotas/mahotas/internal.py
imports: import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: _check_2(arr, funcname) without return types