code: def test_single_change_point():
      np.random.seed(0)
      x = np.concatenate(
          [np.random.random(100), 1 + np.random.random(200)]
      )
  
      with catch_warnings(AstroMLDeprecationWarning):
          bins = bayesian_blocks(x)
  
      assert_(len(bins) == 3)
      assert_allclose(bins[1], 1, rtol=0.02)
  
file_path: astroML/astroML/density_estimation/tests/test_bayesian_blocks.py
imports: import numpy
  from numpy.testing import assert_allclose, assert_
  from astropy.tests.helper import catch_warnings
  from astroML.density_estimation import bayesian_blocks
  from astroML.utils.exceptions import AstroMLDeprecationWarning
label_desc: Use image node_id 1 for calling a global function with example usage: test_single_change_point() without return types