code: def prior_to_xarray(self):
          
          return dict_to_dataset(
              {k: np.expand_dims(v, 0) for k, v in self.prior.items()},
              library=self.pymc3,
              coords=self.coords,
              dims=self.dims,
          )
docs: Convert prior samples to xarray.