code: def Bernoulli(prob_true: vertex_constructor_param_types, label: Optional[str]=None) -> Vertex:
      
      return Boolean(context.jvm_view().BernoulliVertex, label, cast_to_double_vertex(prob_true))
docs: One to one constructor for mapping some shape of probTrue to
      a matching shaped Bernoulli.
      
      :param prob_true: probTrue with same shape as desired Bernoulli tensor or scalar