def SpiceUDREFN(f):
@functools.wraps(f)<EOL>def wrapping_udrefn(t1, t2, s1, s2, t):<EOL><INDENT>result = f(t1, t2, s1, s2)<EOL>t[<NUM_LIT:0>] = c_double(result)<EOL><DEDENT>return UDREFN(wrapping_udrefn)<EOL>
Decorator for wrapping python functions in spice udrefn callback type
:param f: function to be wrapped
:type f: builtins.function
:return: wrapped udrefn function
:rtype: builtins.function