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