class_docstr: Encapsulate InferenceData 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."""
      if self.predictions:
          return None
      return dict_to_dataset(
          self.observations,
          library=pymc,
          coords=self.coords,
          dims=self.dims,
          default_dims=[],
      )
  
imports: import logging
  import warnings
  from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Mapping, Optional, Tuple, Union
  import numpy
  from arviz import InferenceData, concat, rcParams
  from arviz.data.base import CoordSpec, DimSpec, dict_to_dataset, requires
  from pytensor.graph.basic import Constant
  from pytensor.tensor.sharedvar import SharedVariable
  import pymc
  from pymc.model import Model, modelcontext
  from pymc.pytensorf import extract_obs_data
  from pymc.util import get_default_varnames
label_desc: Use image node_id 8 for calling the InferenceDataConverter obj's underlying member method code with example usage: obj.observed_data_to_xarray() and returns: dict_to_dataset, None