def METHOD_NAME(instance, exception_msg, dd_run_check):
    check = OpenStackControllerCheck(CHECK_NAME, {}, [instance])
    with pytest.raises(Exception, match=exception_msg):
        dd_run_check(check)