code: def test_complex_across_dimensions(tmp_path, setup_path):
      complex128 = np.array(
          [1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j]
      )
      s = Series(complex128, index=list("abcd"))
      df = DataFrame({"A": s, "B": s})
  
      path = tmp_path / setup_path
      df.to_hdf(path, key="obj", format="table")
      reread = read_hdf(path, "obj")
      tm.assert_frame_equal(df, reread)
  
file_path: pandas/pandas/tests/io/pytables/test_complex.py
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Series
  import pandas._testing
  from pandas.tests.io.pytables.common import ensure_clean_store
  from pandas.io.pytables import read_hdf
label_desc: Use image node_id 6 for calling a global function with example usage: test_complex_across_dimensions(tmp_path, setup_path) without return types