class_docstr: Class to help manage, save, clean up, and average checkpoints.
code: def __repr__(self):
      return (
          f"CheckpointManager(num_avg_checkpoints={self._num_avg_checkpoints}, "
          f"auto_clear_checkpoints={self._auto_clear_checkpoints}, "
          f"log_verbose={self._log_verbose}, "
          f"checkpoint_files={self._checkpoint_files})"
      )
  
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 2 for calling the CheckpointManager obj's underlying member method code with example usage: obj.__repr__() and returns: str, self, str, self, str, self, str, self, str