code: def test_path_pathlib_hdfstore():
      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),
      )
  
      def writer(path):
          with HDFStore(path) as store:
              df.to_hdf(store, key="df")
  
      def reader(path):
          with HDFStore(path) as store:
              return read_hdf(store, "df")
  
      result = tm.round_trip_pathlib(writer, reader)
      tm.assert_frame_equal(df, result)
  
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 31 for calling a global function with example usage: test_path_pathlib_hdfstore() and returns: read_hdf