code: def test_on_offset_implementations(dt, offset):
      assume(not offset.normalize)
      # check that the class-specific implementations of is_on_offset match
      # the general case definition:
      #   (dt + offset) - offset == dt
      try:
          compare = (dt + offset) - offset
      except (pytz.NonExistentTimeError, pytz.AmbiguousTimeError):
          # When dt + offset does not exist or is DST-ambiguous, assume(False) to
          # indicate to hypothesis that this is not a valid test case
          # DST-ambiguous example (GH41906):
          # dt = datetime.datetime(1900, 1, 1, tzinfo=pytz.timezone('Africa/Kinshasa'))
          # offset = MonthBegin(66)
          assume(False)
  
      assert offset.is_on_offset(dt) == (compare == dt)
  
imports: from hypothesis import assume, given
  import pytest
  import pytz
  import pandas
  from pandas._testing._hypothesis import DATETIME_JAN_1_1900_OPTIONAL_TZ, YQM_OFFSET
label_desc: Use image node_id 1 for calling a global function with example usage: test_on_offset_implementations(dt, offset) without return types