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: Prevents the node from calling `run` on the Python object.
  
  Note that the Python object is still constructed even if `disable_run` has
  been called.
docstr_tok: ["Prevents","the","node","from","calling","`","run","`","on","the","Python","object",".","Note","that","the","Python","object","is","still","constructed","even","if","`","disable_run","`","has","been","called","."]
code: def disable_run(self) -> None:
      """Prevents the node from calling `run` on the Python object.
  
      Note that the Python object is still constructed even if `disable_run` has
      been called.
      """
      self._should_run = False
  
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 4 for calling the PyClassNode obj's underlying member method code with example usage: obj.disable_run() without return types