code: def test_jackknife_pass_indices():
      np.random.seed(0)
      x = np.random.normal(0, 1, 100)
  
      res1 = jackknife(x, np.mean, kwargs=dict(axis=1))
      res2 = jackknife(
          x, lambda i: np.mean(x[i], axis=1), pass_indices=True
      )
  
      assert_allclose(res1, res2)
  
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 7 for calling a global function with example usage: test_jackknife_pass_indices() without return types