def constant_function(x, constant=0):
    """
    Returns a constant value `a` such that f(x) = a.

    Parameters
    ============
    x: the input value.
    constant: the constant value.
    """
    return constant