code: def test_repr(setup_path):
      with ensure_clean_store(setup_path) as store:
          repr(store)
          store.info()
          store["a"] = Series(
              np.arange(10, dtype=np.float64),
              index=date_range("2020-01-01", periods=10),
          )
          store["b"] = Series(
              range(10),
              dtype="float64",
              index=[f"i_{i}" for i in range(10)],
          )
          store["c"] = 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),
          )
  
          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),
          )
          df["obj1"] = "foo"
          df["obj2"] = "bar"
          df["bool1"] = df["A"] > 0
          df["bool2"] = df["B"] > 0
          df["bool3"] = True
          df["int1"] = 1
          df["int2"] = 2
          df["timestamp1"] = Timestamp("20010102")
          df["timestamp2"] = Timestamp("20010103")
          df["datetime1"] = dt.datetime(2001, 1, 2, 0, 0)
          df["datetime2"] = dt.datetime(2001, 1, 3, 0, 0)
          df.loc[df.index[3:6], ["obj1"]] = np.nan
          df = df._consolidate()
  
          with tm.assert_produces_warning(pd.errors.PerformanceWarning):
              store["df"] = df
  
          # make a random group in hdf space
          store._handle.create_group(store._handle.root, "bah")
  
          assert store.filename in repr(store)
          assert store.filename in str(store)
          store.info()
  
      # storers
      with ensure_clean_store(setup_path) as store:
          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),
          )
          store.append("df", df)
  
          s = store.get_storer("df")
          repr(s)
          str(s)
  
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 4 for calling a global function with example usage: test_repr(setup_path) without return types