class_docstr: Encapsulate Dictionary specific logic.
class_docstr_tok: ["Encapsulate","Dictionary","specific","logic","."]
docstr: Convert data to xarray.
docstr_tok: ["Convert","data","to","xarray","."]
code: def data_to_xarray(self, data, group, dims=None):
      """Convert data to xarray."""
      if not isinstance(data, dict):
          raise TypeError(f"DictConverter.{group} is not a dictionary")
      if dims is None:
          dims = {} if self.dims is None else self.dims
      return dict_to_dataset(
          data,
          library=None,
          coords=self.coords,
          dims=self.dims,
          default_dims=[],
          attrs=self.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 11 for calling the DictConverter obj's underlying member method code with example usage: obj.data_to_xarray(data, group, dims) and returns: dict_to_dataset