def SpiceUDFUNS(f):
@functools.wraps(f)<EOL>def wrapping_udfuns(x, value):<EOL><INDENT>result = f(x)<EOL>value[<NUM_LIT:0>] = c_double(result)<EOL><DEDENT>return UDFUNS(wrapping_udfuns)<EOL>
Decorator for wrapping python functions in spice udfuns callback type
:param f: function that has one argument of type float, and returns a float
:type f: builtins.function
:return: wrapped udfunc function
:rtype: builtins.function