class_docstr: Encapsulate CmdStanPy specific logic.
docstr: Convert observed data to xarray.
code: def observed_data_to_xarray(self):
      """Convert observed data to xarray."""
      return dict_to_dataset(
          self.observed_data,
          library=self.cmdstanpy,
          coords=self.coords,
          dims=self.dims,
          default_dims=[],
          index_origin=self.index_origin,
      )
  
imports: import logging
  import re
  from collections import defaultdict
  from copy import deepcopy
  from pathlib import Path
  import numpy
  from ..rcparams import rcParams
  from .base import dict_to_dataset, infer_stan_dtypes, make_attrs, requires
  from .inference_data import InferenceData
label_desc: Use image node_id 12 for calling the CmdStanPyConverter obj's underlying member method code with example usage: obj.observed_data_to_xarray() and returns: dict_to_dataset