code: def test_duplicate_columns():
      # only works for version 2
      table = pa.table(
          [[1, 2, 3], [4, 5, 6], [7, 8, 9]], names=["a", "a", "b"]
      )
      _check_arrow_roundtrip(table)
      _assert_error_on_write(table, ValueError, version=1)
  
imports: import io
  import os
  import sys
  import tempfile
  import pytest
  import hypothesis
  import hypothesis.strategies
  import numpy
  import pyarrow
  import pyarrow.tests.strategies
  from pyarrow.feather import read_feather, write_feather, read_table, FeatherDataset
label_desc: Use image node_id 43 for calling a global function with example usage: test_duplicate_columns() without return types