code: def test_sink_csv_with_options() -> None:
      """
      Test with all possible options.
  
      As we already tested the main read/write functionality of the `sink_csv` method in
       the `test_sink_csv` method above, we only need to verify that all the options are
       passed into the rust-polars correctly.
      """
      df = pl.LazyFrame({"dummy": ["abc"]})
      with unittest.mock.patch.object(df, "_ldf") as ldf:
          df.sink_csv(
              "path",
              include_bom=True,
              include_header=False,
              separator=";",
              line_terminator="|",
              quote_char="$",
              batch_size=42,
              datetime_format="%Y",
              date_format="%d",
              time_format="%H",
              float_precision=42,
              null_value="BOOM",
              quote_style="always",
              maintain_order=False,
          )
  
          ldf.optimization_toggle().sink_csv.assert_called_with(
              path="path",
              include_bom=True,
              include_header=False,
              separator=ord(";"),
              line_terminator="|",
              quote_char=ord("$"),
              batch_size=42,
              datetime_format="%Y",
              date_format="%d",
              time_format="%H",
              float_precision=42,
              null_value="BOOM",
              quote_style="always",
              maintain_order=False,
          )
  
file_path: polars/py-polars/tests/unit/streaming/test_streaming_io.py
imports: from __future__ import annotations
  import unittest
  from typing import TYPE_CHECKING
  import pytest
  import polars
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_sink_csv_with_options() without return types