def object_build_function(node, member, localname):
 (args, varargs, varkw, defaults) = getargspec(member)
 if (varargs is not None):
  args.append(varargs)
 if (varkw is not None):
  args.append(varkw)
 func = build_function((getattr(member, '__name__', None) or localname), args, defaults, six.get_function_code(member).co_flags, member.__doc__)
 node.add_local_node(func, localname)

def object_build_function ( node , member , localname ) : ( args , varargs , varkw , defaults ) = getargspec ( member ) if ( varargs is not None ) : args . append ( varargs ) if ( varkw is not None ) : args . append ( varkw ) func = build_function ( ( getattr ( member , '__name__' , None ) or localname ) , args , defaults , six . get_function_code ( member ) . co_flags , member . __doc__ ) node . add_local_node ( func , localname )
create astroid for a living function object .