human
I wrote the below code

    def decorator(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            keep_inds = [copy.deepcopy(ind) for ind in args]
            new_inds = list(func(*args, **kwargs))
            for (i, ind) in enumerate(new_inds):
                if (key(ind) > max_value):
                    new_inds[i] = random.choice(keep_inds)
            return new_inds
        return wrapper
    return decorator

What's a good function header?
assistant
#Here's a good function header.

def staticLimit(key, max_value):