docstr: Generate predictions for predictions_params
docstr_tok: ["Generate","predictions","for","predictions_params"]
code: def predictions_data(self, data, predictions_params):
      """Generate predictions for predictions_params"""
      posterior_samples = data.obj.get_samples()
      model = data.obj.sampler.model
      predictions = Predictive(model, posterior_samples)(
          PRNGKey(2),
          predictions_params["J"],
          predictions_params["sigma"],
      )
      return predictions
  
file_path: arviz/arviz/tests/external_tests/test_data_numpyro.py
imports: from collections import namedtuple
  import numpy
  import pytest
  from ...data.io_numpyro import from_numpyro
  from ..helpers import chains, check_multiple_attrs, draws, eight_schools_params, importorskip, load_cached_models
label_desc: Use image node_id 3 for calling the TestDataNumPyro obj's underlying member method code with example usage: obj.predictions_data(data, predictions_params) and returns: predictions