class_docstr: Runs a user-defined Python function.
class_docstr_tok: ["Runs","a","user-defined","Python","function","."]
code: def __init__(
      self, function: Callable[..., ReturnType], *args, **kwargs
  ):
      super().__init__()
      self._func_args = args
      self._func_kwargs = kwargs
      self._function = function
      self._partial_function = self._construct_function
      self.py_node_id = next(PyNode.NEXT_PY_NODE_ID)
  
      # Find input handles and put them in self._input_handles.
      tree.traverse(
          functools.partial(
              base.extract_handles, handles=self._input_handles
          ),
          (self._func_args, self._func_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 1 to create a new PyNode object from inherited base classes: base.Node, Generic with example: obj = PyNode(function)