class_docstr: Encapsulate Pyro specific logic.
docstr: Convert observed data to xarray.
docstr_tok: ["Convert","observed","data","to","xarray","."]
code: def observed_data_to_xarray(self):
      """Convert observed data to xarray."""
      dims = {} if self.dims is None else self.dims
      return dict_to_dataset(
          self.observations,
          library=self.pyro,
          coords=self.coords,
          dims=dims,
          default_dims=[],
      )
  
imports: import logging
  from typing import Callable, Optional
  import warnings
  import numpy
  from packaging import version
  from ..None import utils
  from ..rcparams import rcParams
  from .base import dict_to_dataset, requires
  from .inference_data import InferenceData
label_desc: Use image node_id 9 for calling the PyroConverter obj's underlying member method code with example usage: obj.observed_data_to_xarray() and returns: dict_to_dataset