code: def test_linear(self):
      N = 3000.0
      x = arange(N)
      y = arange(N)
      new_x = arange(N) + 0.5
      with suppress_warnings() as sup:
          sup.filter(DeprecationWarning, "`linear` is deprecated")
          new_y = linear(x, y, new_x)
  
      assert_allclose(new_y[:5], [0.5, 1.5, 2.5, 3.5, 4.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 3 for calling the Test obj's underlying member method code with example usage: obj.test_linear() without return types