code: def current_iteration(self):
          
          out_cur_iter = ctypes.c_int(0)
          _safe_call(_LIB.LGBM_BoosterGetCurrentIteration(
              self.handle,
              ctypes.byref(out_cur_iter)))
          return out_cur_iter.value
docs: Get the index of the current iteration.
  
          Returns
          -------
          cur_iter : int
              The index of the current iteration.