code: def test_inference_data_only_posterior(self, data):
      idata = from_numpyro(data.obj)
      test_dict = {
          "posterior": ["mu", "tau", "eta"],
          "sample_stats": ["diverging"],
          "log_likelihood": ["obs"],
      }
      fails = check_multiple_attrs(test_dict, idata)
      assert not fails
  
file_path: arviz/arviz/tests/external_tests/test_data_numpyro.py
imports: from collections import namedtuple
  import numpy
  import pytest
  from ...data.io_numpyro import from_numpyro
  from ..helpers import chains, check_multiple_attrs, draws, eight_schools_params, importorskip, load_cached_models
label_desc: Use image node_id 8 for calling the TestDataNumPyro obj's underlying member method code with example usage: obj.test_inference_data_only_posterior(data) without return types