code: def test_copy(propindexes):
      df = DataFrame(
          1.1 * np.arange(120).reshape((30, 4)),
          columns=Index(list("ABCD"), dtype=object),
          index=Index([f"i-{i}" for i in range(30)], dtype=object),
      )
  
      with tm.ensure_clean() as path:
          with HDFStore(path) as st:
              st.append("df", df, data_columns=["A"])
          with tempfile.NamedTemporaryFile() as new_f:
              with HDFStore(path) as store:
                  with contextlib.closing(
                      store.copy(
                          new_f.name, keys=None, propindexes=propindexes
                      )
                  ) as tstore:
                      # check keys
                      keys = store.keys()
                      assert set(keys) == set(tstore.keys())
                      # check indices & nrows
                      for k in tstore.keys():
                          if tstore.get_storer(k).is_table:
                              new_t = tstore.get_storer(k)
                              orig_t = store.get_storer(k)
  
                              assert orig_t.nrows == new_t.nrows
  
                              # check propindixes
                              if propindexes:
                                  for a in orig_t.axes:
                                      if a.is_indexed:
                                          assert new_t[
                                              a.name
                                          ].is_indexed
  
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 34 for calling a global function with example usage: test_copy(propindexes) without return types