code: def add_node(self, node):
      if not isinstance(node, self.append_type):
          raise AssertionError("Add Edge before adding Node")
      self._nodes.append(node)
      self.append_type = Edge
      return self
  
file_path: catboost/contrib/python/redis/py3/redis/commands/graph/path.py
imports: from .edge import Edge
  from .node import Node
label_desc: Use image node_id 11 for calling the Path obj's underlying member method code with example usage: obj.add_node(node) and returns: self