def _dump_function(func):
 func_info = (func.func_name, func.func_defaults, func.func_closure)
 code_info = (func.func_code.co_argcount, func.func_code.co_nlocals, func.func_code.co_stacksize, func.func_code.co_flags, func.func_code.co_code, func.func_code.co_consts, func.func_code.co_names, func.func_code.co_varnames, func.func_code.co_filename, func.func_code.co_name, func.func_code.co_firstlineno, func.func_code.co_lnotab, func.func_code.co_freevars, func.func_code.co_cellvars)
 return pickle.dumps((code_info, func_info, func.func_doc), pickle.HIGHEST_PROTOCOL)

def _dump_function ( func ) : func_info = ( func . func_name , func . func_defaults , func . func_closure ) code_info = ( func . func_code . co_argcount , func . func_code . co_nlocals , func . func_code . co_stacksize , func . func_code . co_flags , func . func_code . co_code , func . func_code . co_consts , func . func_code . co_names , func . func_code . co_varnames , func . func_code . co_filename , func . func_code . co_name , func . func_code . co_firstlineno , func . func_code . co_lnotab , func . func_code . co_freevars , func . func_code . co_cellvars ) return pickle . dumps ( ( code_info , func_info , func . func_doc ) , pickle . HIGHEST_PROTOCOL )
serializes a function .