code: def test_bootstrap_pass_indices():
      np.random.seed(0)
      x = np.random.normal(0, 1, 100)
  
      dist1 = bootstrap(
          x, 100, np.mean, kwargs=dict(axis=1), random_state=0
      )
      dist2 = bootstrap(
          x,
          100,
          lambda i: np.mean(x[i], axis=1),
          pass_indices=True,
          random_state=0,
      )
  
      assert_allclose(dist1, dist2)
  
file_path: astroML/astroML/tests/test_resample.py
imports: import numpy
  from numpy.testing import assert_allclose
  from astroML.resample import bootstrap, jackknife
  from astroML.stats import mean_sigma
label_desc: Use image node_id 6 for calling a global function with example usage: test_bootstrap_pass_indices() without return types