class_docstr: Encapsulate Bean Machine specific logic.
docstr: Convert all available data to an InferenceData object.
code: def to_inference_data(self):
      """Convert all available data to an InferenceData object."""
      return InferenceData(
          **{
              "posterior": self.posterior_to_xarray(),
              "posterior_predictive": self.posterior_predictive_to_xarray(),
              "log_likelihood": self.log_likelihood_to_xarray(),
              "observed_data": self.observed_data_to_xarray(),
          }
      )
  
file_path: arviz/arviz/data/io_beanmachine.py
imports: from .inference_data import InferenceData
  from .base import dict_to_dataset, requires
label_desc: Use image node_id 6 for calling the BMConverter obj's underlying member method code with example usage: obj.to_inference_data() and returns: InferenceData