code: def _compute_absolute_step(rel_step, x0, method):
      if rel_step is None:
          rel_step = relative_step[method]
      sign_x0 = (x0 >= 0).astype(float) * 2 - 1
      return rel_step * sign_x0 * np.maximum(1.0, np.abs(x0))
  
file_path: catboost/contrib/python/scipy/py2/scipy/optimize/_numdiff.py
imports: from __future__ import division
  import numpy
  from numpy.linalg import norm
  from scipy.sparse.linalg import LinearOperator
  from ..sparse import issparse, csc_matrix, csr_matrix, coo_matrix, find
  from ._group_columns import group_dense, group_sparse
label_desc: Use image node_id 2 for calling a global function with example usage: _compute_absolute_step(rel_step, x0, method) and returns: unknown