code: def bernoulli(p, state):
      t = p * np.iinfo(np.uint64).max
      r = np.array(
          [xorshift128p(state) for _ in range(len(p))], dtype=np.float32
      )
      return r < t
  
file_path: byteps/tests/utils.py
imports: import mxnet
  import mxnet.ndarray
  import numpy
  from numba import jit
label_desc: Use image node_id 3 for calling a global function with example usage: bernoulli(p, state) and returns: unknown