def METHOD_NAME(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 : ndarray
    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('mahotas.{0}: This function only accepts positive integer types (passed array of type {1})'.format(function_name, A.dtype))