code: def _check_interpolate(array, order, funcname):
      if not (0 < order < 5):
          raise ValueError(
              "mahotas.interpolate.%s: spline order not supported"
              % funcname
          )
  
      array = np.asarray(array)
      if np.iscomplexobj(array):
          raise TypeError(
              "mahotas.interpolate.%s: Complex type not supported"
              % funcname
          )
      return array
  
file_path: mahotas/mahotas/interpolate.py
imports: import numpy
  from .None import internal
  from .None import _interpolate
  from ._filters import mode2int, modes, _check_mode
label_desc: Use image node_id 1 for calling a global function with example usage: _check_interpolate(array, order, funcname) and returns: array