code: def test_engine_kwargs_write(ext, iso_dates):
      # GH 42286 GH 43445
      engine_kwargs = {"iso_dates": iso_dates}
      with tm.ensure_clean(ext) as f:
          with ExcelWriter(
              f, engine="openpyxl", engine_kwargs=engine_kwargs
          ) as writer:
              assert writer.book.iso_dates == iso_dates
              # ExcelWriter won't allow us to close without writing something
              DataFrame().to_excel(writer)
  
imports: import contextlib
  from pathlib import Path
  import re
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame
  import pandas._testing
  from pandas.io.excel import ExcelWriter, _OpenpyxlWriter
  from pandas.io.excel._openpyxl import OpenpyxlReader
label_desc: Use image node_id 4 for calling a global function with example usage: test_engine_kwargs_write(ext, iso_dates) without return types