code: def __init__(self, path: Path, default: int = None):
      mode = "r+" if path.exists() else "w+"
      self._file = open(path, mode)
      self._default = default
      self._last = self.read()
  
file_path: neptune-client/src/neptune/internal/utils/sync_offset_file.py
imports: from pathlib import Path
  from typing import Optional
label_desc: Use image node_id 1 to create a new SyncOffsetFile object  with example: obj = SyncOffsetFile(path, default)