code: def test_duplicate_column_name(tmp_path, setup_path):
      df = DataFrame(columns=["a", "a"], data=[[0, 0]])
  
      path = tmp_path / setup_path
      msg = "Columns index has to be unique for fixed format"
      with pytest.raises(ValueError, match=msg):
          df.to_hdf(path, key="df", format="fixed")
  
      df.to_hdf(path, key="df", format="table")
      other = read_hdf(path, "df")
  
      tm.assert_frame_equal(df, other)
      assert df.equals(other)
      assert other.equals(df)
  
imports: import contextlib
  import datetime
  import hashlib
  import tempfile
  import time
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, Series, Timestamp, concat, date_range, period_range, timedelta_range
  import pandas._testing
  from pandas.tests.io.pytables.common import _maybe_remove, ensure_clean_store
  from pandas.io.pytables import HDFStore, read_hdf
label_desc: Use image node_id 35 for calling a global function with example usage: test_duplicate_column_name(tmp_path, setup_path) without return types