code: def test_measures_fitness_homoscedastic():
      np.random.seed(0)
      t = np.linspace(0, 1, 11)
      x = np.exp(-0.5 * (t - 0.5) ** 2 / 0.01**2)
      sigma = 0.05
      x = np.random.normal(x, sigma)
  
      with catch_warnings(AstroMLDeprecationWarning):
          bins = bayesian_blocks(t, x, sigma, fitness="measures")
  
      assert_allclose(bins, [0, 0.45, 0.55, 1])
  
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 3 for calling a global function with example usage: test_measures_fitness_homoscedastic() without return types