def METHOD_NAME(aggregator, dd_run_check, new_check, instance, report_event, event_type, level):
    check = new_check(instance)
    report_event('foo', event_type=event_type)
    dd_run_check(check)
    aggregator.assert_event('foo', alert_type=level)