class_docstr: Instantiates a Python object and runs its run() method (if provided).
  
  If disable_run() is called before launch, instance.run() method won't be
  called. This is useful in TAP-based integration tests, where users might need
  to step each worker synchronously.
class_docstr_tok: ["Instantiates","a","Python","object","and","runs","its","run","(",")","method","(","if","provided",")",".","If","disable_run","(",")","is","called","before","launch",",","instance.run","(",")","method","wo","n't","be","called",".","This","is","useful","in","TAP-based","integration","tests",",","where","users","might","need","to","step","each","worker","synchronously","."]
docstr: Ensures `run` is called on the Python object.
  
  This is the default state and callers don't need to call `enable_run` unless
  `disable_run` has been called.
docstr_tok: ["Ensures","`","run","`","is","called","on","the","Python","object",".","This","is","the","default","state","and","callers","do","n't","need","to","call","`","enable_run","`","unless","`","disable_run","`","has","been","called","."]
code: def enable_run(self) -> None:
      """Ensures `run` is called on the Python object.
  
      This is the default state and callers don't need to call `enable_run` unless
      `disable_run` has been called.
      """
      self._should_run = True
  
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 5 for calling the PyClassNode obj's underlying member method code with example usage: obj.enable_run() without return types