code: def test_1d_mean():
      x = np.random.random(100)
      v = np.random.random(100)
  
      stat1, edges1 = binned_statistic(x, v, "mean", bins=10)
      stat2, edges2 = binned_statistic(x, v, np.mean, bins=10)
  
      assert_array_almost_equal(stat1, stat2)
      assert_array_almost_equal(edges1, edges2)
  
file_path: astroML/astroML/stats/tests/test_binned_statistic.py
imports: import numpy
  from numpy.testing import assert_array_almost_equal
  from astroML.stats import binned_statistic, binned_statistic_2d, binned_statistic_dd
label_desc: Use image node_id 3 for calling a global function with example usage: test_1d_mean() without return types