def METHOD_NAME(
    self, action: str = ACCEPT, timeout: Optional[timedelta] = None
):
    """Verifies that no alert is present.
    If the alert actually exists, the ``action`` argument determines
    how it should be handled. By default, the alert is accepted, but
    it can be also dismissed or left open the same way as with the
    `Handle Alert` keyword.
    ``timeout`` specifies how long to wait for the alert to appear.
    By default, is not waited for the alert at all, but a custom time can
    be given if alert may be delayed. See the `time format` section
    for information about the syntax.
    New in SeleniumLibrary 3.0.
    """
    try:
        alert = self._wait_alert(timeout)
    except AssertionError:
        return
    text = self._handle_alert(alert, action)
    raise AssertionError(f"Alert with message '{text}' present.")