code: def __init__(
      self,
      save_model_each_k_epochs,
      save_optimizer_state,
      base_path,
  ) -> None:
      super().__init__()
      self.save_optimizer_state = save_optimizer_state
      self.save_model_each_k_epochs = save_model_each_k_epochs
      self.base_path = base_path
  
file_path: flair/flair/trainers/plugins/functional/checkpoints.py
imports: import logging
  from typing import Any, Dict
  from flair.trainers.plugins.base import TrainerPlugin
label_desc: Use image node_id 1 to create a new CheckpointPlugin object from inherited base classes: TrainerPlugin with example: obj = CheckpointPlugin(save_model_each_k_epochs, save_optimizer_state, base_path)