code: def ravel(parameter, random_state=None):
      
      flatvalue = np.ravel(parameter.rvs(random_state=random_state))
      flatbounds = [parameter.bounds
                    for _ in range(np.prod(parameter.shape, dtype=int))]
  
      return flatvalue, flatbounds
docs: Flatten a ``Parameter``.
  
      Parameters
      ----------
      parameter: Parameter
          A ``Parameter`` object
  
      Returns
      -------
      flatvalue: ndarray
          a flattened array of shape ``(prod(parameter.shape),)``
      flatbounds: list
          a list of bound tuples of length ``prod(parameter.shape)``