code: def define_tensorflow_variables(net_params, trainable=True):
      """
      This function defines TF Variables from the C++ initialization.
  
      Parameters
      ----------
      trainable: boolean
          If `True` the transformer network updates the convolutional layers as
          well as the instance norm layers of the network. If `False` only the
          instance norm layers of the network are updated.
  
          Note the VGG network's parameters aren't updated
      Returns
      -------
      out: dict
          The TF Variable dictionary.
      """
      _tf = _lazy_import_tensorflow()
      tensorflow_variables = dict()
      for key in net_params.keys():
          if "weight" in key:
              # only set the parameter to train if in the transformer network
              train_param = trainable and "transformer_" in key
              if "conv" in key:
                  tensorflow_variables[key] = _tf.Variable(
                      initial_value=_utils.convert_conv2d_coreml_to_tf(
                          net_params[key]
                      ),
                      name=key,
                      trainable=train_param,
                  )
              else:
                  # This is the path that the instance norm takes
                  tensorflow_variables[key] = _tf.Variable(
                      initial_value=_utils.convert_dense_coreml_to_tf(
                          net_params[key]
                      ),
                      name=key,
                      trainable=True,
                  )
          else:
              tensorflow_variables[key] = _tf.Variable(
                  initial_value=net_params[key],
                  name=key,
                  trainable=False,
              )
      return tensorflow_variables
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from turicreate.toolkits._tf_model import TensorFlowModel
  import numpy
  import turicreate.toolkits._tf_utils
  from turicreate._deps.minimal_package import _minimal_package_import_check
label_desc: Use image node_id 2 for calling a global function with example usage: define_tensorflow_variables(net_params, trainable) and returns: tensorflow_variables