class_docstr: Runs a user-defined Python function.
class_docstr_tok: ["Runs","a","user-defined","Python","function","."]
code: def _construct_function(self):
      context.set_context(self._launch_context)
      args, kwargs = tree.map_structure(
          dereference.maybe_dereference,
          (self._func_args, self._func_kwargs),
      )
      return functools.partial(self._function, *args, **kwargs)()
  
imports: import functools
  import itertools
  from typing import Any, Callable, Generic, TypeVar
  from absl import flags
  from absl import logging
  from launchpad import context
  from launchpad import lazy_loader
  from launchpad.nodes import base
  from launchpad.nodes import dereference
  from launchpad.nodes.python import addressing
  from launchpad.nodes.python import local_multi_processing
  import tree
label_desc: Use image node_id 2 for calling the PyNode obj's underlying member method code with example usage: obj._construct_function() and returns: functools