class_docstr: Encapsulate Dictionary specific logic.
class_docstr_tok: ["Encapsulate","Dictionary","specific","logic","."]
docstr: Convert prior samples to xarray.
docstr_tok: ["Convert","prior","samples","to","xarray","."]
code: def prior_to_xarray(self):
      """Convert prior samples to xarray."""
      data = self.prior
      if not isinstance(data, dict):
          raise TypeError("DictConverter.prior is not a dictionary")
      prior_attrs = self._kwargs.get("prior_attrs")
      return dict_to_dataset(
          data,
          library=None,
          coords=self.coords,
          dims=self.dims,
          attrs=prior_attrs,
          index_origin=self.index_origin,
      )
  
imports: import warnings
  from typing import Optional
  from ..rcparams import rcParams
  from .base import dict_to_dataset, requires
  from .inference_data import WARMUP_TAG, InferenceData
label_desc: Use image node_id 8 for calling the DictConverter obj's underlying member method code with example usage: obj.prior_to_xarray() and returns: dict_to_dataset