code: def _warn_jac_unused(jac, method):
      if jac is not None:
          warn(
              "Method %s does not use the jacobian (jac)." % (method,),
              RuntimeWarning,
          )
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/_root.py
imports: import numpy
  from warnings import warn
  from .optimize import MemoizeJac, OptimizeResult, _check_unknown_options
  from .minpack import _root_hybr, leastsq
  from ._spectral import _root_df_sane
  from .None import nonlin
label_desc: Use image node_id 2 for calling a global function with example usage: _warn_jac_unused(jac, method) without return types