def METHOD_NAME():
    """Test that events with null duration throw a warning."""
    with pytest.warns(
        UserWarning,
        match="The following conditions contain events with null duration",
    ):
        check_events(design_with_null_durations())