code: def test_eight_schools_parameter_indexes(posterior):
      num_chains, num_samples = 1, 200
      fit = posterior.sample(
          num_chains=num_chains,
          num_samples=num_samples,
          num_warmup=num_samples,
      )
      offset = len(fit.sample_and_sampler_param_names)
      assert fit._parameter_indexes("mu") == (offset + 0,)
      assert fit._parameter_indexes("tau") == (offset + 1,)
      assert fit._parameter_indexes("eta") == tuple(
          offset + i for i in (2, 3, 4, 5, 6, 7, 8, 9)
      )
      assert fit._parameter_indexes("theta") == tuple(
          offset + i for i in (10, 11, 12, 13, 14, 15, 16, 17)
      )
  
file_path: pystan/tests/test_eight_schools.py
imports: import numpy
  import pandas
  import pytest
  import stan
label_desc: Use image node_id 5 for calling a global function with example usage: test_eight_schools_parameter_indexes(posterior) without return types