code: def object_build_function(node, member, localname):
      
      # pylint: disable=deprecated-method; completely removed in 2.0
      args, varargs, varkw, defaults = inspect.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, member.__doc__
      )
      node.add_local_node(func, localname)
docs: create astroid for a living function object