code: def line_search_BFGS(
      f, xk, pk, gfk, old_fval, args=(), c1=1e-4, alpha0=1
  ):
      """
      Compatibility wrapper for `line_search_armijo`
      """
      r = line_search_armijo(
          f, xk, pk, gfk, old_fval, args=args, c1=c1, alpha0=alpha0
      )
      return r[0], r[1], 0, r[2]
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/linesearch.py
imports: from warnings import warn
  from scipy.optimize import minpack2
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: line_search_BFGS(f, xk, pk, gfk, old_fval, args, c1, alpha0) and returns: r,  r,  int,  r