class_docstr: Class for scanning checkpoint directory and updating the checkpoint state
class_docstr_tok: ["Class","for","scanning","checkpoint","directory","and","updating","the","checkpoint","state"]
docstr: Update the checkpoint state with the latest checkpoint.
  :param checkpoint: SingleCheckpoint object containing name and number of checkpoint
docstr_tok: ["Update","the","checkpoint","state","with","the","latest","checkpoint",".",":","param","checkpoint",":","SingleCheckpoint","object","containing","name","and","number","of","checkpoint"]
code: def update(self, checkpoint: SingleCheckpoint) -> None:
      """
      Update the checkpoint state with the latest checkpoint.
      :param checkpoint: SingleCheckpoint object containing name and number of checkpoint
      """
      self._all_checkpoints.append(checkpoint)
      # Simply write checkpoint_name to checkpoint-state file
      self._checkpoint_state_file.write(checkpoint)
  
imports: import os
  import re
  from typing import List, Union, Tuple
label_desc: Use image node_id 2 for calling the CheckpointStateUpdater obj's underlying member method code with example usage: obj.update(checkpoint) without return types