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: Loads a checkpoint.
  
  The `checkpoint_loader` parameter works similarly to the
  `checkpoint_writer` parameter of :meth:`store_checkpoint`,
  with the difference that it should read the checkpoint.
  
  :param checkpoint_name: The name of the checkpoint to load.
  :param checkpoint_loader: A callable that accepts a readable file-like
      object. The callable must read the checkpoint from the provided file
      object and return it.
  :return: The loaded checkpoint, as returned from `checkpoint_loader. It
      will raise an exception if the checkpoint cannot be loaded,
      depending on the specific implementation.
docstr_tok: ["Loads","a","checkpoint",".","The","`","checkpoint_loader","`","parameter","works","similarly","to","the","`","checkpoint_writer","`","parameter","of",":","meth",":","`","store_checkpoint","`",",","with","the","difference","that","it","should","read","the","checkpoint",".",":","param","checkpoint_name",":","The","name","of","the","checkpoint","to","load",".",":","param","checkpoint_loader",":","A","callable","that","accepts","a","readable","file-like","object",".","The","callable","must","read","the","checkpoint","from","the","provided","file","object","and","return","it",".",":","return",":","The","loaded","checkpoint",",","as","returned","from","`","checkpoint_loader",".","It","will","raise","an","exception","if","the","checkpoint","can","not","be","loaded",",","depending","on","the","specific","implementation","."]
code: def load_checkpoint(
      self,
      checkpoint_name: str,
      checkpoint_loader: Callable[[Union[BinaryIO, IO[bytes]]], Any],
  ) -> Any:
      """
      Loads a checkpoint.
  
      The `checkpoint_loader` parameter works similarly to the
      `checkpoint_writer` parameter of :meth:`store_checkpoint`,
      with the difference that it should read the checkpoint.
  
      :param checkpoint_name: The name of the checkpoint to load.
      :param checkpoint_loader: A callable that accepts a readable file-like
          object. The callable must read the checkpoint from the provided file
          object and return it.
      :return: The loaded checkpoint, as returned from `checkpoint_loader. 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 5 for calling the CheckpointStorage obj's underlying member method code with example usage: obj.load_checkpoint(checkpoint_name, checkpoint_loader) without return types