code: def _get_indx(_lambda, num, largest):
      """Get `num` indices into `_lambda` depending on `largest` option."""
      ii = np.argsort(_lambda)
      if largest:
          ii = ii[: -num - 1 : -1]
      else:
          ii = ii[:num]
  
      return ii
  
file_path: catboost/contrib/python/scipy/py3/scipy/sparse/linalg/eigen/lobpcg/lobpcg.py
imports: import numpy
  from scipy.linalg import inv, eigh, cho_factor, cho_solve, cholesky, LinAlgError
  from scipy.sparse.linalg import aslinearoperator
  from numpy import block
label_desc: Use image node_id 6 for calling a global function with example usage: _get_indx(_lambda, num, largest) and returns: ii