code: def _to_sql_chunk(d, uri, engine_kwargs=None, **kwargs):
      import sqlalchemy as sa
  
      engine_kwargs = engine_kwargs or {}
      engine = sa.create_engine(uri, **engine_kwargs)
  
      q = d.to_sql(con=engine, **kwargs)
      engine.dispose()
  
      return q
  
file_path: dask/dask/dataframe/io/sql.py
imports: from __future__ import annotations
  import warnings
  import numpy
  import pandas
  from dask.base import compute
  from dask.dataframe import methods
  from dask.dataframe.io.io import from_delayed, from_pandas
  from dask.dataframe.utils import pyarrow_strings_enabled
  from dask.delayed import delayed, tokenize
  from dask.utils import parse_bytes
label_desc: Use image node_id 5 for calling a global function with example usage: _to_sql_chunk(d, uri, engine_kwargs) and returns: q