human
Complete this python program:
def condition(cond, rule):
assistant
#Here is the Python program you requested.

    """Only apply rule if condition is true
    """
    def conditioned_rl(expr):
        if cond(expr):
            return rule(expr)
        else:
            return expr
    return conditioned_rl