def METHOD_NAME(eps, input, bias=None):
    """Projection onto L-infinity ball.
    Args:
        eps (float, or array): l-infinity ball scaling.
        input (array)
    Returns:
        array: Result.
    """
    if bias is not None:
        input = input - bias
    output = input - soft_thresh(eps, input)
    if bias is not None:
        output += bias
    return output