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: :return: The most recent checkpoint state
docstr_tok: [":","return",":","The","most","recent","checkpoint","state"]
code: def get_checkpoint_state(self) -> Union[None, CheckpointState]:
      """
      :return: The most recent checkpoint state
      """
      if len(self._all_checkpoints) == 0:
          return None
      return CheckpointState(
          self._all_checkpoints, self._checkpoint_dir
      )
  
imports: import os
  import re
  from typing import List, Union, Tuple
label_desc: Use image node_id 5 for calling the CheckpointStateUpdater obj's underlying member method code with example usage: obj.get_checkpoint_state() and returns: CheckpointState, None