code: def __init__(self, name_to_stateful, *args, **kwargs):
      super().__init__(*args, **kwargs)
      self.name_to_stateful = name_to_stateful
  
imports: import warnings
  from typing import IO, Dict
  import torch
  from poutyne.framework.callbacks.lr_scheduler import ReduceLROnPlateau, _PyTorchLRSchedulerWrapper
  from poutyne.framework.callbacks.periodic import PeriodicSaveCallback
  from poutyne.utils import load_random_states, save_random_states
label_desc: Use image node_id 1 to create a new StateCheckpoint object from inherited base classes: PeriodicSaveCallback with example: obj = StateCheckpoint(name_to_stateful)