class_docstr: Abstract class for the checkpoint storage component.
  
  A checkpoint storage implementations must provide mechanisms to store, list,
  and load checkpoints from a persistent storage. Instances of this class are
  used by the :class:`CheckpointPlugin` strategy plugin.
docstr: Stores a checkpoint.
  
  This method expects a checkpoint name and a callable.
  
  The callable must accept a file-like object as input. The file-like
  object is created by the checkpoint storage (this object) and it will
  accept binary write operations to store the byte representation of the
  checkpoint.
  
  :param checkpoint_name: The name of the checkpoint.
  :param checkpoint_writer: A callable that accepts a writable file-like
      object. The callable must write the checkpoint to the provided file
      object.
  :return: None. It will raise an exception if the checkpoint cannot be
      loaded, depending on the specific implementation.
docstr_tok: ["Stores","a","checkpoint",".","This","method","expects","a","checkpoint","name","and","a","callable",".","The","callable","must","accept","a","file-like","object","as","input",".","The","file-like","object","is","created","by","the","checkpoint","storage","(","this","object",")","and","it","will","accept","binary","write","operations","to","store","the","byte","representation","of","the","checkpoint",".",":","param","checkpoint_name",":","The","name","of","the","checkpoint",".",":","param","checkpoint_writer",":","A","callable","that","accepts","a","writable","file-like","object",".","The","callable","must","write","the","checkpoint","to","the","provided","file","object",".",":","return",":","None",".","It","will","raise","an","exception","if","the","checkpoint","can","not","be","loaded",",","depending","on","the","specific","implementation","."]
code: def store_checkpoint(
      self,
      checkpoint_name: str,
      checkpoint_writer: Callable[[Union[BinaryIO, IO[bytes]]], None],
  ) -> None:
      """
      Stores a checkpoint.
  
      This method expects a checkpoint name and a callable.
  
      The callable must accept a file-like object as input. The file-like
      object is created by the checkpoint storage (this object) and it will
      accept binary write operations to store the byte representation of the
      checkpoint.
  
      :param checkpoint_name: The name of the checkpoint.
      :param checkpoint_writer: A callable that accepts a writable file-like
          object. The callable must write the checkpoint to the provided file
          object.
      :return: None. It will raise an exception if the checkpoint cannot be
          loaded, depending on the specific implementation.
      """
      pass
  
file_path: avalanche/avalanche/training/plugins/checkpoint.py
imports: from abc import ABC, abstractmethod
  from typing import Union, Callable, IO, Any, Dict, Optional, Iterable, BinaryIO
  import torch
  from avalanche._annotations import deprecated
  from avalanche.core import BaseSGDPlugin
  from avalanche.training.templates import BaseSGDTemplate
label_desc: Use image node_id 2 for calling the CheckpointStorage obj's underlying member method code with example usage: obj.store_checkpoint(checkpoint_name, checkpoint_writer) without return types