code: def num_model_per_iteration(self):
          
          model_per_iter = ctypes.c_int(0)
          _safe_call(_LIB.LGBM_BoosterNumModelPerIteration(
              self.handle,
              ctypes.byref(model_per_iter)))
          return model_per_iter.value
docs: Get number of models per iteration.
  
          Returns
          -------
          model_per_iter : int
              The number of models per iteration.