code: def test_inference_data_has_log_likelihood_and_observed_data(
      self, data
  ):
      idata = from_beanmachine(data.obj)
      obs = data.model.obs()
  
      assert obs in idata.log_likelihood
      assert obs in idata.observed_data
  
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 5 for calling the TestDataBeanMachine obj's underlying member method code with example usage: obj.test_inference_data_has_log_likelihood_and_observed_data(data) without return types