code: def test_to_csv_iterative_compression_name(compression):
      # GH 38714
      df = DataFrame(
          1.1 * np.arange(120).reshape((30, 4)),
          columns=Index(list("ABCD")),
          index=Index([f"i-{i}" for i in range(30)]),
      )
      with tm.ensure_clean() as path:
          df.to_csv(path, compression=compression, chunksize=1)
          tm.assert_frame_equal(
              pd.read_csv(path, compression=compression, index_col=0),
              df,
          )
  
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 1 for calling a global function with example usage: test_to_csv_iterative_compression_name(compression) without return types