code: def test_read_column_duplicated_in_file(tempdir):
      # duplicated columns in feather file (only works for feather v2)
      table = pa.table(
          [[1, 2, 3], [4, 5, 6], [7, 8, 9]], names=["a", "b", "a"]
      )
      path = str(tempdir / "data.feather")
      write_feather(table, path, version=2)
  
      # no selection works fine
      result = read_table(path)
      assert result.equals(table)
  
      # selection with indices works
      result = read_table(path, columns=[0, 2])
      assert result.column_names == ["a", "a"]
  
      # selection with column names errors
      with pytest.raises(ValueError):
          read_table(path, columns=["a", "b"])
  
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 54 for calling a global function with example usage: test_read_column_duplicated_in_file(tempdir) without return types