code: def _randomly_negate_tensor(tensor):
      """With 50% prob turn the tensor negative."""
      should_flip = tf.cast(
          tf.floor(tf.random_uniform([]) + 0.5), tf.bool
      )
      final_tensor = tf.cond(
          should_flip, lambda: tensor, lambda: -tensor
      )
      return final_tensor
  
imports: import dataclasses
  import inspect
  import math
  import tensorflow.compat.v1
  from tensorflow_addons import image
label_desc: Use image node_id 22 for calling a global function with example usage: _randomly_negate_tensor(tensor) and returns: final_tensor