def GetOrCreateTimestamp(self):
    """Get a timestamp from self.timeplist, create if doesn't exist.

    Returns:
      datetime.datetime object
    Raises:
      ErrorWritingPlist: SetPlistKey fails
      OSError: if more >1 parent directory is missing from self.timeplist path
    """
    try:
      return self.ReadTimeFile()
    except (ErrorReadingPlist, __HOLE__):
      # Got a bad file, try writing a new one
      return self.WriteTimeFile()
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/timer.py/TimeFile.GetOrCreateTimestamp