human
Here's a good function header given the following:
I wrote the below code

    def f(rv):
        if (not (isinstance(rv, Pow) and (rv.base.func in (cot, tan)))):
            return rv
        rv = _TR56(rv, tan, sec, (lambda x: (x - 1)), max=max, pow=pow)
        rv = _TR56(rv, cot, csc, (lambda x: (x - 1)), max=max, pow=pow)
        return rv
    return bottom_up(rv, f)

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

def TR22(rv, max=4, pow=False):