t returns a decorator that replaces the
            passed-in function with one that returns the value of 'num'c