class_docstr: Helper class for reading from and writing to the checkpoint state file
class_docstr_tok: ["Helper","class","for","reading","from","and","writing","to","the","checkpoint","state","file"]
docstr: Writes data to checkpoint state file
  :param data: string data
docstr_tok: ["Writes","data","to","checkpoint","state","file",":","param","data",":","string","data"]
code: def write(self, data: SingleCheckpoint) -> None:
      """
      Writes data to checkpoint state file
      :param data: string data
      """
      with open(self._checkpoint_state_path, "w") as fd:
          fd.write(data.name)
  
imports: import os
  import re
  from typing import List, Union, Tuple
label_desc: Use image node_id 4 for calling the CheckpointStateFile obj's underlying member method code with example usage: obj.write(data) without return types