code: def sample_stats_prior_to_xarray(self):
          
          prior = self.prior
          data = get_sample_stats(prior)
          return dict_to_dataset(data, library=self.pystan, coords=self.coords, dims=self.dims)
docs: Extract sample_stats_prior from prior.