code: def _stateless_bernoulli_trial(
      seed: tf.Tensor, p: float = 0.5
  ) -> tf.Tensor:
      return tf.greater(tf.random.stateless_uniform([], seed), p)
  
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 a global function with example usage: _stateless_bernoulli_trial(seed, p) and returns: tf