def check_valid_permutation(permutation):
    permutation = numpy.asarray(permutation)
    if permutation.ndim != 1:
        raise ValueError("expected 1-dimensional permutation argument")
    elif permutation.dtype.kind != 'i':
        raise ValueError("expected integer dtype argument")
    elif (len(set(permutation)) != max(permutation) + 1 or
            min(permutation) < 0):
        raise ValueError("invalid permutation")
    return permutation
target:     the url to receive the payload.
dataset/ETHPy150Open mila-udem/blocks-extras/blocks_extras/utils.py/check_valid_permutation--crossover with--dataset/ETHPy150Open fabric-bolt/fabric-bolt/fabric_bolt/web_hooks/tasks.py/DeliverHook.run