code: def assign(ref, value, name=None):
      if hasattr(tf, "assign"):
          return tf.assign(ref, value, name=name)
      else:
          return ref.assign(value, name=name)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: assign(ref, value, name) and returns: tf, ref