class_docstr: A beta random variable.
class_docstr_tok: ["A","beta","random","variable","."]
code: def _flatten_params(point, pre_flat_shape):
      param_a = gs.expand_dims(point[..., 0], axis=-1)
      param_b = gs.expand_dims(point[..., 1], axis=-1)
  
      flat_param_a = gs.reshape(
          gs.broadcast_to(param_a, pre_flat_shape), (-1,)
      )
      flat_param_b = gs.reshape(
          gs.broadcast_to(param_b, pre_flat_shape), (-1,)
      )
      return {"a": flat_param_a, "b": flat_param_b}
  
file_path: geomstats/geomstats/information_geometry/beta.py
imports: from scipy.stats import beta
  import geomstats.backend
  from geomstats.information_geometry.base import ScipyUnivariateRandomVariable
  from geomstats.information_geometry.dirichlet import DirichletDistributions, DirichletMetric
label_desc: Use image node_id 2 for calling the BetaDistributionsRandomVariable obj's underlying member method code with example usage: obj._flatten_params(point, pre_flat_shape) and returns: dict