class_docstr: Class to help manage, save, clean up, and average checkpoints.
docstr: Removes all checkpoints besides
   average_checkpoint.pt and last_checkpoint.pt
docstr_tok: ["Removes","all","checkpoints","besides","average_checkpoint.pt","and","last_checkpoint.pt"]
code: def remove_all_checkpoints(self):
      """
      Removes all checkpoints besides
       average_checkpoint.pt and last_checkpoint.pt
      """
      for checkpoint_to_remove in self._checkpoint_files:
          self._remove_checkpoint(checkpoint_to_remove)
  
imports: import os
  from collections import deque, OrderedDict
  from typing import Any, Deque, Dict, List, Optional, Tuple
  import torch
  from fairseq import checkpoint_utils, utils
  from pytorch_translate import constants
  from pytorch_translate.file_io import PathManager
label_desc: Use image node_id 8 for calling the CheckpointManager obj's underlying member method code with example usage: obj.remove_all_checkpoints() without return types