class_docstr: Call a lambda with a file descriptor after every epoch. See
  :class:`~poutyne.PeriodicSaveCallback` for the arguments' descriptions.
  
  Args:
      func (Callable[[fd, int, dict], None]): The lambda that will be called with a file descriptor, the
          epoch number and the epoch logs.
      restore (Callable[[fd], None]): The lambda that will be called with a file descriptor to restore
          the state if necessary.
  
  See:
      :class:`~poutyne.PeriodicSaveCallback`
class_docstr_tok: ["Call","a","lambda","with","a","file","descriptor","after","every","epoch",".","See",":","class",":","`","~poutyne.PeriodicSaveCallback","`","for","the","arguments","'","descriptions",".","Args",":","func","(","Callable","[","[","fd",",","int",",","dict","]",",","None","]",")",":","The","lambda","that","will","be","called","with","a","file","descriptor",",","the","epoch","number","and","the","epoch","logs",".","restore","(","Callable","[","[","fd","]",",","None","]",")",":","The","lambda","that","will","be","called","with","a","file","descriptor","to","restore","the","state","if","necessary",".","See",":",":","class",":","`","~poutyne.PeriodicSaveCallback","`"]
code: def restore(self, fd: IO) -> None:
      if self._restore is not None:
          self._restore(fd)
  
file_path: poutyne/poutyne/framework/callbacks/periodic.py
imports: import os
  import warnings
  from abc import ABC, abstractmethod
  from typing import IO, Callable, Dict, Optional
  from poutyne.framework.callbacks._utils import atomic_lambda_save
  from poutyne.framework.callbacks.callbacks import Callback
label_desc: Use image node_id 3 for calling the PeriodicSaveLambda obj's underlying member method code with example usage: obj.restore(fd) without return types