human
What is a the Python program you requested given the following:
Complete the below
def condition(cond, brule):

    ''''Only apply branching rule if condition is true'
    '''
assistant
#Here is the Python program you requested.
    def conditioned_brl(expr):
        if cond(expr):
            for x in brule(expr):
                (yield x)
        else:
            pass
    return conditioned_brl