code: def bernoulli(self):
      """Returns a tensor with elements in {0, 1}. The i-th element of the
      output will be 1 with probability according to the i-th value of the
      input tensor."""
      return self > crypten.rand(self.size(), device=self.device)
  
imports: import crypten
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: bernoulli() and returns: unknown