class_docstr: Randomly flips an image horizontally (left to right).
class_docstr_tok: ["Randomly","flips","an","image","horizontally","(","left","to","right",")","."]
code: def apply(self, image: tf.Tensor, seed: tf.Tensor) -> tf.Tensor:
      return tf.cond(
          _stateless_bernoulli_trial(seed, p=0.5),
          lambda: tf.identity(image),
          lambda: tf.image.flip_left_right(image),
      )
  
imports: import abc
  import dataclasses
  from typing import Optional, Sequence, Tuple, Union
  from clu import preprocess_spec
  from scenic.projects.owl_vit.preprocessing import modalities
  from scenic.projects.owl_vit.preprocessing import transforms
  import tensorflow
label_desc: Use image node_id 1 for calling the RandomFlipLeftRight obj's underlying member method code with example usage: obj.apply(image, seed) and returns: tf