code: def connect_nodes(nodes):
      
      for n, next_node in zip(nodes, nodes[1:]):
          if isinstance(n, ControlFlowNode):
              _connect_control_flow_node(n, next_node)
          elif isinstance(next_node, ControlFlowNode):
              n.connect(next_node.test)
          elif isinstance(next_node, RestoreNode):
              continue
          elif CALL_IDENTIFIER in next_node.label:
              continue
          else:
              n.connect(next_node)
docs: Connect the nodes in a list linearly.