class_docstr: Wrapper for scipy.optimize.minimize.
  
  Only `jac` differs from scipy: if `autodiff`, then
  `gs.autodiff.value_and_grad` is used to compute the jacobian.
code: def _handle_hess(self, fun_hess):
      if fun_hess is not None:
          return fun_hess
  
      return self.hess
  
file_path: geomstats/geomstats/numerics/optimizers.py
imports: import logging
  import scipy
  import geomstats.backend
  from geomstats.numerics._common import result_to_backend_type
label_desc: Use image node_id 3 for calling the ScipyMinimize obj's underlying member method code with example usage: obj._handle_hess(fun_hess) and returns: self, fun_hess