code: def assert_datetime_equality(dt1, dt2, within=10):
      assert dt1.tzinfo == dt2.tzinfo
      assert abs((dt1 - dt2).total_seconds()) < within
  
imports: import pytz
  from dateutil.zoneinfo import get_zonefile_instance
label_desc: Use image node_id 2 for calling a global function with example usage: assert_datetime_equality(dt1, dt2, within) without return types