code: def _get_indx(_lambda, num, largest):
      """Get `num` indices into `_lambda` depending on `largest` option."""
      ii = cupy.argsort(_lambda)
      if largest:
          ii = ii[: -num - 1 : -1]
      else:
          ii = ii[:num]
      return ii
  
file_path: cupy/cupyx/scipy/sparse/linalg/_lobpcg.py
imports: import warnings
  import numpy
  import cupy
  import cupy.linalg
  from cupyx.scipy.sparse import linalg
label_desc: Use image node_id 8 for calling a global function with example usage: _get_indx(_lambda, num, largest) and returns: ii