code: def test_block_average_above(self):
      N = 3000
      x = arange(N, dtype=float)
      y = arange(N, dtype=float)
  
      new_x = arange(N // 2) * 2
      with suppress_warnings() as sup:
          sup.filter(
              DeprecationWarning, "`block_average_above` is deprecated"
          )
          new_y = block_average_above(x, y, new_x)
      assert_allclose(new_y[:5], [0.0, 0.5, 2.5, 4.5, 6.5])
  
file_path: catboost/contrib/python/scipy/py2/scipy/interpolate/tests/test_interpolate_wrapper.py
imports: from __future__ import division, print_function, absolute_import
  from numpy import arange, allclose, ones, isnan
  import numpy
  from numpy.testing import assert_, assert_allclose
  from scipy._lib._numpy_compat import suppress_warnings
  from scipy.interpolate.interpolate_wrapper import linear, logarithmic, block_average_above, nearest
label_desc: Use image node_id 4 for calling the Test obj's underlying member method code with example usage: obj.test_block_average_above() without return types