code: def test_to_csv_pos_args_deprecation():
      # GH-54229
      df = DataFrame({"a": [1, 2, 3]})
      msg = (
          r"Starting with pandas version 3.0 all arguments of to_csv except for the "
          r"argument 'path_or_buf' will be keyword-only."
      )
      with tm.assert_produces_warning(FutureWarning, match=msg):
          buffer = io.BytesIO()
          df.to_csv(buffer, ";")
  
imports: import io
  import os
  import sys
  from zipfile import ZipFile
  from _csv import Error
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, compat
  import pandas._testing
label_desc: Use image node_id 3 for calling a global function with example usage: test_to_csv_pos_args_deprecation() without return types