docstr: Check that strong Wolfe conditions apply
docstr_tok: ["Check","that","strong","Wolfe","conditions","apply"]
code: def assert_wolfe(self, s, phi, derphi, c1=1e-4, c2=0.9, err_msg=""):
      """
      Check that strong Wolfe conditions apply
      """
      phi1 = phi(s)
      phi0 = phi(0)
      derphi0 = derphi(0)
      derphi1 = derphi(s)
      msg = "s = {}; phi(0) = {}; phi(s) = {}; phi'(0) = {}; phi'(s) = {}; {}".format(
          s, phi0, phi1, derphi0, derphi1, err_msg
      )
  
      self.assertTrue(
          phi1 <= phi0 + c1 * s * derphi0, "Wolfe 1 failed: " + msg
      )
      self.assertTrue(
          abs(derphi1) <= abs(c2 * derphi0), "Wolfe 2 failed: " + msg
      )
  
imports: from absl.testing import absltest
  import scipy.optimize
  import jax
  from jax import grad
  from jax import config
  import jax.numpy
  import jax._src.test_util
  from jax._src.scipy.optimize.line_search import line_search
label_desc: Use image node_id 1 for calling the TestLineSearch obj's underlying member method code with example usage: obj.assert_wolfe(s, phi, derphi, c1, c2, err_msg) without return types