code: def __init__(
      self,
      path: FilePath | WriteExcelBuffer | ExcelWriter,
      engine: str | None = None,
      date_format: str | None = None,
      datetime_format=None,
      mode: str = "w",
      storage_options: StorageOptions | None = None,
      if_sheet_exists: ExcelWriterIfSheetExists | None = None,
      engine_kwargs: dict[str, Any] | None = None,
      **kwargs,
  ) -> None:
      from odf.opendocument import OpenDocumentSpreadsheet
  
      if mode == "a":
          raise ValueError("Append mode is not supported with odf!")
  
      engine_kwargs = combine_kwargs(engine_kwargs, kwargs)
      self._book = OpenDocumentSpreadsheet(**engine_kwargs)
  
      super().__init__(
          path,
          mode=mode,
          storage_options=storage_options,
          if_sheet_exists=if_sheet_exists,
          engine_kwargs=engine_kwargs,
      )
  
      self._style_dict: dict[str, str] = {}
  
file_path: pandas/pandas/io/excel/_odswriter.py
imports: from __future__ import annotations
  from collections import defaultdict
  import datetime
  import json
  from typing import TYPE_CHECKING, Any, DefaultDict, cast, overload
  from pandas.io.excel._base import ExcelWriter
  from pandas.io.excel._util import combine_kwargs, validate_freeze_panes
label_desc: Use image node_id 1 to create a new ODSWriter object from inherited base classes: ExcelWriter with example: obj = ODSWriter(path, engine, date_format, datetime_format, mode, storage_options, if_sheet_exists, engine_kwargs)