def METHOD_NAME(retry_state: RetryCallState) -> None:
    # pylint: disable=protected-access
    assert retry_state.outcome  # nosec
    e = retry_state.outcome.exception()
    assert isinstance(e, HTTPError)  # nosec
    log.error(
        "Request timed-out after %s attempts with an unexpected error: '%s':%s",
        retry_state.attempt_number,
        f"{e.request=}",
        f"{e=}",
    )