docstr: vars as str.
docstr_tok: ["vars","as","str","."]
code: def get_inference_data(self, data, eight_schools_params):
      """vars as str."""
      return from_pystan(
          posterior=data.obj,
          posterior_predictive="y_hat",
          predictions="y_hat",  # wrong, but fine for testing
          prior=data.obj,
          prior_predictive="y_hat",
          observed_data="y",
          constant_data="sigma",
          predictions_constant_data="sigma",  # wrong, but fine for testing
          log_likelihood={"y": "log_lik"},
          coords={"school": np.arange(eight_schools_params["J"])},
          dims={
              "theta": ["school"],
              "y": ["school"],
              "sigma": ["school"],
              "y_hat": ["school"],
              "eta": ["school"],
          },
          posterior_model=data.model,
          prior_model=data.model,
      )
  
imports: import importlib
  from collections import OrderedDict
  import numpy
  import pytest
  from ...None import from_pystan
  from ...data.io_pystan import get_draws, get_draws_stan3
  from ..helpers import chains, check_multiple_attrs, draws, eight_schools_params, importorskip, load_cached_models, pystan_version, running_on_ci
label_desc: Use image node_id 2 for calling the TestDataPyStan obj's underlying member method code with example usage: obj.get_inference_data(data, eight_schools_params) and returns: from_pystan