code: def test_newton_integers(self):
      # Regression test for gh-1741
      root = scipy.optimize.newton(
          lambda x: x**2 - 1, x0=2, fprime=lambda x: 2 * x
      )
      assert_almost_equal(root, 1.0)
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/tests/test_regression.py
imports: import numpy
  from numpy.testing import assert_almost_equal
  from pytest import raises
  import scipy.optimize
label_desc: Use image node_id 2 for calling the TestRegression obj's underlying member method code with example usage: obj.test_newton_integers() without return types