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