class_docstr: Provides functionality to topologically sort a graph of hashable nodes
code: def _get_nodeinfo(self, node):
      if (result := self._node2info.get(node)) is None:
          self._node2info[node] = result = _NodeInfo(node)
      return result
  
file_path: catboost/contrib/tools/python3/src/Lib/graphlib.py
imports: from types import GenericAlias
label_desc: Use image node_id 2 for calling the TopologicalSorter obj's underlying member method code with example usage: obj._get_nodeinfo(node) and returns: result