code: def prior_predictive_to_xarray(self):
          
          data = self.prior_predictive
          if not isinstance(data, dict):
              raise TypeError("DictConverter.prior_predictive is not a dictionary")
  
          return dict_to_dataset(data, library=None, coords=self.coords, dims=self.dims)
docs: Convert prior_predictive samples to xarray.