docstr: Generate predictions for predictions_params
docstr_tok: ["Generate","predictions","for","predictions_params"]
code: def predictions_data(self, data):
      """Generate predictions for predictions_params"""
      posterior_samples = data.obj
      model = data.model
      predictions = bm.inference.predictive.simulate(
          [model.obs()], posterior_samples
      )
      return predictions
  
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 2 for calling the TestDataBeanMachine obj's underlying member method code with example usage: obj.predictions_data(data) and returns: predictions