code: def _check_roundtrip_table(obj, comparator, path, compression=False):
      options = {}
      if compression:
          options["complib"] = "blosc"
  
      with ensure_clean_store(path, "w", **options) as store:
          store.put("obj", obj, format="table")
          retrieved = store["obj"]
  
          comparator(retrieved, obj)
  
imports: import datetime
  import re
  import numpy
  import pytest
  from pandas._libs.tslibs import Timestamp
  from pandas.compat import is_platform_windows
  import pandas
  from pandas import DataFrame, DatetimeIndex, Index, Series, _testing, bdate_range, date_range, read_hdf
  from pandas.tests.io.pytables.common import _maybe_remove, ensure_clean_store
  from pandas.util import _test_decorators
label_desc: Use image node_id 22 for calling a global function with example usage: _check_roundtrip_table(obj, comparator, path, compression) without return types