code: def assert_is_on_offset(offset, date, expected):
      actual = offset.is_on_offset(date)
      assert actual == expected, (
          f"\nExpected: {expected}\nActual: {actual}\nFor Offset: {offset})"
          f"\nAt Date: {date}"
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: assert_is_on_offset(offset, date, expected) without return types