code: def test_opening_time(self, case):
      _offsets, cases = case
      for offset in _offsets:
          for dt, (exp_next, exp_prev) in cases.items():
              assert offset._next_opening_time(dt) == exp_next
              assert offset._prev_opening_time(dt) == exp_prev
  
imports: from __future__ import annotations
  from datetime import datetime, time
  import pytest
  from pandas._libs.tslibs import Timedelta, Timestamp
  from pandas._libs.tslibs.offsets import BDay, BusinessHour, Nano
  from pandas import DatetimeIndex, _testing, date_range
  from pandas.tests.tseries.offsets.common import assert_offset_equal
label_desc: Use image node_id 1 for calling the TestOpeningTimes obj's underlying member method code with example usage: obj.test_opening_time(case) without return types