class_docstr: Represents a d - 1 dimensional Simplex in R^d.
  
  That is, all coordinates are in [0, 1] and sum to 1.
  The dimension d of the simplex is assumed to be shape[-1].
  
  Additionally one can specify the underlying distribution of
  the simplex as a Dirichlet distribution by providing concentration
  parameters. By default, sampling is uniform, i.e. concentration is
  all 1s.
  
  Example usage:
  self.action_space = spaces.Simplex(shape=(3, 4))
      --> 3 independent 4d Dirichlet with uniform concentration
code: def to_jsonable(self, sample_n):
      return np.array(sample_n).tolist()
  
file_path: ray/python/ray/rllib/utils/spaces/simplex.py
imports: import gymnasium
  import numpy
  from ray.rllib.utils.annotations import PublicAPI
label_desc: Use image node_id 4 for calling the Simplex obj's underlying member method code with example usage: obj.to_jsonable(sample_n) and returns: np