def object_build_function(node, member, localname):
<EOL>args, varargs, varkw, defaults = inspect.getargspec(member)<EOL>if varargs is not None:<EOL><INDENT>args.append(varargs)<EOL><DEDENT>if varkw is not None:<EOL><INDENT>args.append(varkw)<EOL><DEDENT>func = build_function(<EOL>getattr(member, "<STR_LIT>", None) or localname, args, defaults, member.__doc__<EOL>)<EOL>node.add_local_node(func, localname)<EOL>
create astroid for a living function object