class_docstr: Encapsulate PyStan specific logic.
class_docstr_tok: ["Encapsulate","PyStan","specific","logic","."]
docstr: Convert prior_predictive samples to xarray.
code: def prior_predictive_to_xarray(self):
      """Convert prior_predictive samples to xarray."""
      prior = self.prior
      prior_predictive = self.prior_predictive
      data, _ = get_draws(
          prior,
          variables=prior_predictive,
          warmup=False,
          dtypes=self.dtypes,
      )
      return dict_to_dataset(
          data, library=self.pystan, coords=self.coords, dims=self.dims
      )
  
imports: import re
  from collections import OrderedDict
  from copy import deepcopy
  from math import ceil
  import numpy
  import xarray
  from ..None import _log
  from ..rcparams import rcParams
  from .base import dict_to_dataset, generate_dims_coords, infer_stan_dtypes, make_attrs, requires
  from .inference_data import InferenceData
label_desc: Use image node_id 9 for calling the PyStanConverter obj's underlying member method code with example usage: obj.prior_predictive_to_xarray() and returns: dict_to_dataset