code: def get_inference_data(self, data, eight_schools_params, fill_attrs):
      return from_dict(
          posterior=data.obj,
          posterior_predictive=data.obj,
          sample_stats=data.obj,
          prior=data.obj,
          prior_predictive=data.obj,
          sample_stats_prior=data.obj,
          observed_data=eight_schools_params,
          coords={"school": np.arange(8)},
          dims={"theta": ["school"], "eta": ["school"]},
          attrs={"test": 1} if fill_attrs else None,
      )
  
file_path: arviz/arviz/tests/base_tests/test_data_zarr.py
imports: import os
  from collections.abc import MutableMapping
  from tempfile import TemporaryDirectory
  from typing import Mapping
  import numpy
  import pytest
  from ...None import InferenceData, from_dict
  from ...None import to_zarr, from_zarr
  from ..helpers import chains, check_multiple_attrs, draws, eight_schools_params, importorskip, running_on_ci
label_desc: Use image node_id 2 for calling the TestDataZarr obj's underlying member method code with example usage: obj.get_inference_data(data, eight_schools_params, fill_attrs) and returns: from_dict