code: def assert_adatetime(at, **kwargs):
      assert at.__class__ is adatetime
      for key in adatetime.units:
          val = getattr(at, key)
          target = kwargs.get(key)
          assert val == target, "at.%s=%r not %r in %r" % (
              key,
              val,
              target,
              at,
          )
  
file_path: whoosh/tests/test_dateparse.py
imports: from whoosh.qparser.dateparse import *
label_desc: Use image node_id 1 for calling a global function with example usage: assert_adatetime(at) without return types