code: def test_inference_data(
      self, data, eight_schools_params, predictions_data
  ):
      inference_data = self.get_inference_data(
          eight_schools_params, predictions_data
      )
      model = data.model
      mu = model.mu()
      tau = model.tau()
      eta = model.eta()
      obs = model.obs()
  
      assert mu in inference_data.posterior
      assert tau in inference_data.posterior
      assert eta in inference_data.posterior
      assert obs in inference_data.posterior_predictive
  
file_path: arviz/arviz/tests/external_tests/test_data_beanmachine.py
imports: import numpy
  import pytest
  from ...data.io_beanmachine import from_beanmachine
  from ..helpers import chains, draws, eight_schools_params, importorskip, load_cached_models
label_desc: Use image node_id 4 for calling the TestDataBeanMachine obj's underlying member method code with example usage: obj.test_inference_data(data, eight_schools_params, predictions_data) without return types