code: def track_nodes_created_by_last_call(layer, created_nodes):
      """Adds to `created_nodes` the nodes created by the last call to `layer`."""
      if not layer._inbound_nodes:
          return
      created_nodes.add(layer._inbound_nodes[-1])
      prev_layers = layer._inbound_nodes[-1].inbound_layers
      for prev_layer in nest.flatten(prev_layers):
          if prev_layer._outbound_nodes:
              created_nodes.add(prev_layer._outbound_nodes[-1])
  
imports: import copy
  import warnings
  from tensorflow.python import tf2
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.keras import layers
  from tensorflow.python.keras.engine import base_layer
  from tensorflow.python.keras.engine import functional
  from tensorflow.python.keras.engine import input_layer
  from tensorflow.python.keras.engine import training_utils
  from tensorflow.python.keras.saving.saved_model import model_serialization
  from tensorflow.python.keras.utils import generic_utils
  from tensorflow.python.keras.utils import layer_utils
  from tensorflow.python.keras.utils import tf_inspect
  from tensorflow.python.keras.utils import tf_utils
  from tensorflow.python.module import module
  from tensorflow.python.ops.numpy_ops import np_arrays
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.trackable import base
  from tensorflow.python.util import nest
label_desc: Use image node_id 4 for calling a global function with example usage: track_nodes_created_by_last_call(layer, created_nodes) without return types