code: def _connect_control_flow_node(control_flow_node, next_node):
      
      for last in control_flow_node.last_nodes:
          if isinstance(next_node, ControlFlowNode):
              last.connect(next_node.test)  # connect to next if test case
          elif isinstance(next_node, AssignmentCallNode):
              call_node = next_node.call_node
              inner_most_call_node = _get_inner_most_function_call(call_node)
              last.connect(inner_most_call_node)
          else:
              last.connect(next_node)
docs: Connect a ControlFlowNode properly to the next_node.