def METHOD_NAME(self, timeout):
    if timeout is Timeout.DEFAULT_TIMEOUT:
        return 5  # 5s is the default timeout for URLFetch.
    if isinstance(timeout, Timeout):
        if timeout._read is not timeout._connect:
            warnings.warn(
                "URLFetch does not support granular timeout settings, "
                "reverting to total timeout.", AppEnginePlatformWarning)
        return timeout.total
    return timeout