def METHOD_NAME(e: Exception) -> bool:
    # Most possible failures during processing are handled by the HTTP request retries in GitLabCore class,
    # but in some cases we cannot do that on that level.
    # If we already retried on a request level, don't retry again
    if "Max retries exceeded with url" in str(e):
        return False
    # One case is when a POST request is made and the request is sent, but we got no (or incomplete?) response.
    # Because we don't know if the particular POST request was done under the hood (f.e. an entity was created),
    # we cannot retry just the single request (f.e. if it was created then a retry would either create a duplicate
    # of the entity or fail with an error, if duplicates are not allowed in a given case).
    # Then we need to retry the whole section (f.e. files) for a given entity (f.e. project foo/bar), so the checks
    # for the initial state will re-run (f.e. checking if that entity already exists or not).
    # fmt: off
    if type(e) == requests.exceptions.ConnectionError \
            and "RemoteDisconnected('Remote end closed connection without response')" in str(e):
        return True
    # fmt: on
    return False