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