code: def test_complex_fixed(tmp_path, setup_path):
      df = DataFrame(
          np.random.default_rng(2).random((4, 5)).astype(np.complex64),
          index=list("abcd"),
          columns=list("ABCDE"),
      )
  
      path = tmp_path / setup_path
      df.to_hdf(path, key="df")
      reread = read_hdf(path, "df")
      tm.assert_frame_equal(df, reread)
  
      df = DataFrame(
          np.random.default_rng(2).random((4, 5)).astype(np.complex128),
          index=list("abcd"),
          columns=list("ABCDE"),
      )
      path = tmp_path / setup_path
      df.to_hdf(path, key="df")
      reread = read_hdf(path, "df")
      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 1 for calling a global function with example usage: test_complex_fixed(tmp_path, setup_path) without return types