code: def random_bernoulli(rng, p=0.5, shape=()):
      del rng
      return np.random.binomial(1, p, size=shape)
  
file_path: trax/trax/fastmath/numpy.py
imports: import numpy
  from scipy.special import logsumexp
  from trax.shapes import signature
label_desc: Use image node_id 5 for calling a global function with example usage: random_bernoulli(rng, p, shape) and returns: np