code: def write_resume_point(self):
          
          try:
              resume_pts = self.attrs["resume_points"].tolist()
          except KeyError:
              resume_pts = []
          try:
              niterations = self.niterations
          except KeyError:
              niterations = 0
          resume_pts.append(niterations)
          self.attrs["resume_points"] = resume_pts
docs: Keeps a list of the number of iterations that were in a file when a
          run was resumed from a checkpoint.