code: def __init__(self, node):
      # The node this class is augmenting.
      self.node = node
  
      # Number of predecessors, generally >= 0. When this value falls to 0,
      # and is returned by get_ready(), this is set to _NODE_OUT and when the
      # node is marked done by a call to done(), set to _NODE_DONE.
      self.npredecessors = 0
  
      # List of successor nodes. The list can contain duplicated elements as
      # long as they're all reflected in the successor's npredecessors attribute.
      self.successors = []
  
file_path: catboost/contrib/tools/python3/src/Lib/graphlib.py
imports: from types import GenericAlias
label_desc: Use image node_id 1 to create a new _NodeInfo object  with example: obj = _NodeInfo(node)