code: def _verify_is_integer_type(A, function_name):
      """
      _verify_is_integer_type(array, "function")
      Checks that ``A`` is an integer array. If it is not, it raises
      ``TypeError``.
      Parameters
      ----------
      A : Tensor
      function_name : str
          Used for error messages
      """
      k = A.dtype.kind
      if k not in "iub":  # integer, unsigned integer, boolean
          raise TypeError(
              f"caer.{function_name}: This function only accepts integer types (passed array of type {A.dtype})"
          )
  
file_path: caer/caer/_internal.py
imports: import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: _verify_is_integer_type(A, function_name) without return types