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
  
file_path: objax/examples/fixmatch/libml/augment/randaugment/randaugment.py
imports: from typing import Optional
  import tensorflow
  from examples.fixmatch.libml.augment.randaugment import augment_ops
label_desc: Use image node_id 1 for calling a global function with example usage: _randomly_negate_tensor(tensor) and returns: final_tensor