code: def _variable_on_cpu(name, shape, initializer):
      """Helper to create a Variable stored on CPU memory.
  
      Args:
        name: name of the variable
        shape: list of ints
        initializer: initializer for Variable
  
      Returns:
        Variable Tensor
      """
      with tf.device("/cpu:0"):
          var = tf.get_variable(name, shape, initializer=initializer)
      return var
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from datetime import datetime
  import math
  import numpy
  from six.moves import xrange
  import tensorflow.compat.v1
  import time
  import utils
label_desc: Use image node_id 1 for calling a global function with example usage: _variable_on_cpu(name, shape, initializer) and returns: var