parameters: (loop_node: Node, internal_layer_id: int)
return_statement: return []
docstring: Get a list of nodes from the main graph that are connected with a node with internal_layer_id
          from the body graph
  
          :param loop_node: The Loop node
          :param internal_layer_id: Internal layer ID of the node in the body graph
          :return: A list of external nodes (from the main graph) that are connected with a node with
          internal_layer_id from the body graph
docstring_summary: Get a list of nodes from the main graph that are connected with a node with internal_layer_id
          from the body graph
docstring_tokens: Get a list of nodes from the main graph that are connected with a node with internal_layer_id from the body graph
function: def get_external_nodes_by_internal_id(loop_node: Node, internal_layer_id: int) -> list:
          """
          Get a list of nodes from the main graph that are connected with a node with internal_layer_id
          from the body graph
  
          :param loop_node: The Loop node
          :param internal_layer_id: Internal layer ID of the node in the body graph
          :return: A list of external nodes (from the main graph) that are connected with a node with
          internal_layer_id from the body graph
          """
          for map_item in loop_node.input_port_map:
              if map_item['internal_layer_id'] == internal_layer_id \
                      and loop_node.is_in_port_connected(map_item['external_port_id']):
                  return [loop_node.in_port(map_item['external_port_id']).get_source().node]
          for map_item in loop_node.output_port_map:
              if map_item['internal_layer_id'] == internal_layer_id \
                      and loop_node.is_out_port_connected(map_item['external_port_id']):
                  return [dest.node for dest in loop_node.out_port(map_item['external_port_id']).get_destinations()]
          return []
function_tokens: def get_external_nodes_by_internal_id ( loop_node : Node , internal_layer_id : int ) -> list : for map_item in loop_node . input_port_map : if map_item [ 'internal_layer_id' ] == internal_layer_id and loop_node . is_in_port_connected ( map_item [ 'external_port_id' ] ) : return [ loop_node . in_port ( map_item [ 'external_port_id' ] ) . get_source ( ) . node ] for map_item in loop_node . output_port_map : if map_item [ 'internal_layer_id' ] == internal_layer_id and loop_node . is_out_port_connected ( map_item [ 'external_port_id' ] ) : return [ dest . node for dest in loop_node . out_port ( map_item [ 'external_port_id' ] ) . get_destinations ( ) ] return [ ]