code: def test_legacy_datetimetz_object(datapath):
      # legacy from < 0.17.0
      # 8260
      expected = DataFrame(
          {
              "A": Timestamp("20130102", tz="US/Eastern").as_unit("ns"),
              "B": Timestamp("20130603", tz="CET").as_unit("ns"),
          },
          index=range(5),
      )
      with ensure_clean_store(
          datapath("io", "data", "legacy_hdf", "datetimetz_object.h5"),
          mode="r",
      ) as store:
          result = store["df"]
          tm.assert_frame_equal(result, expected)
  
imports: from datetime import date, timedelta
  import numpy
  import pytest
  from pandas._libs.tslibs.timezones import maybe_get_tz
  import pandas.util._test_decorators
  import pandas
  from pandas import DataFrame, DatetimeIndex, Series, Timestamp, date_range
  import pandas._testing
  from pandas.tests.io.pytables.common import _maybe_remove, ensure_clean_store
label_desc: Use image node_id 12 for calling a global function with example usage: test_legacy_datetimetz_object(datapath) without return types