code: def __init__(self, nodes, edges):
      if not (isinstance(nodes, list) and isinstance(edges, list)):
          raise TypeError("nodes and edges must be list")
  
      self._nodes = nodes
      self._edges = edges
      self.append_type = Node
  
file_path: redis-py/redis/commands/graph/path.py
imports: from .edge import Edge
  from .node import Node
label_desc: Use image node_id 1 to create a new Path object  with example: obj = Path(nodes, edges)