code: def _is_int_type(x):
      """
      Check if input is of a scalar integer type (so ``5`` and ``array(5)`` will
      pass, while ``5.0`` and ``array([5])`` will fail.
      """
      if cupy.ndim(x) != 0:
          # Older versions of NumPy did not raise for np.array([1]).__index__()
          # This is safe to remove when support for those versions is dropped
          return False
      try:
          operator.index(x)
      except TypeError:
          return False
      else:
          return True
  
imports: import operator
  from math import pi
  import warnings
  import cupy
  from cupy.polynomial.polynomial import polyval, polyvalfromroots
  import cupyx.scipy.fft
  from cupyx import jit
  from cupyx.scipy._lib._util import float_factorial
  from cupyx.scipy.signal._polyutils import roots
label_desc: Use image node_id 5 for calling a global function with example usage: _is_int_type(x) and returns: False, True, False