code: def test_bootstrap_covar():
      np.random.seed(0)
      mean = [0.0, 0.0]
      covar = [[10.0, 3.0], [3.0, 20.0]]
      x = np.random.multivariate_normal(mean, covar, 1000)
  
      dist_cov = bootstrap(
          x, 10000, np.cov, kwargs=dict(rowvar=0), random_state=0
      )
      assert_allclose(covar[0][0], dist_cov[0][0], atol=2.0 * 0.4)
  
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 5 for calling a global function with example usage: test_bootstrap_covar() without return types