code: def test_inference_data_num_chains(self, predictions_data, chains):
      predictions = predictions_data
      inference_data = from_numpyro(
          predictions=predictions, num_chains=chains
      )
      nchains = inference_data.predictions.dims["chain"]
      assert nchains == chains
  
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 11 for calling the TestDataNumPyro obj's underlying member method code with example usage: obj.test_inference_data_num_chains(predictions_data, chains) without return types