code: def _random_bernoulli(
      shape, probs, dtype=tf.int64, seed=None, name=None
  ):
      """Returns samples from a Bernoulli distribution."""
      with tf.name_scope(name or "random_bernoulli"):
          probs = tf.convert_to_tensor(value=probs)
          random_uniform = tf.random.uniform(
              shape, dtype=probs.dtype, seed=seed
          )
          return tf.cast(tf.less(random_uniform, probs), dtype)
  
imports: import collections
  import functools
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python import random
  from tensorflow_probability.python.experimental import auto_batching
  from tensorflow_probability.python.math import gradient
  from tensorflow_probability.python.mcmc import kernel
  from tensorflow_probability.python.util.seed_stream import SeedStream
label_desc: Use image node_id 11 for calling a global function with example usage: _random_bernoulli(shape, probs, dtype, seed, name) and returns: tf