def func_dump(func):
code = marshal.dumps(func.__code__).decode('<STR_LIT>')<EOL>defaults = func.__defaults__<EOL>if func.__closure__:<EOL><INDENT>closure = tuple(c.cell_contents for c in func.__closure__)<EOL><DEDENT>else:<EOL><INDENT>closure = None<EOL><DEDENT>return code, defaults, closure<EOL>
Serialize user defined function.