code: def test_sampler_stats(self, data, eight_schools_params):
      inference_data = self.get_inference_data(
          data, eight_schools_params
      )
      test_dict = {"sample_stats": ["diverging"]}
      fails = check_multiple_attrs(test_dict, inference_data)
      assert not fails
  
imports: import importlib
  from collections import OrderedDict
  import numpy
  import pytest
  from ...None import from_pystan
  from ...data.io_pystan import get_draws, get_draws_stan3
  from ..helpers import chains, check_multiple_attrs, draws, eight_schools_params, importorskip, load_cached_models, pystan_version, running_on_ci
label_desc: Use image node_id 7 for calling the TestDataPyStan obj's underlying member method code with example usage: obj.test_sampler_stats(data, eight_schools_params) without return types