def METHOD_NAME():
    url = "https://www.google.ca"
    timeout = 5
    connected = False
    while(connected==False):
        try:
            request = requests.get(url, timeout=timeout)
            connected=True
        except (requests.ConnectionError, requests.Timeout) as exception:
            print("No internet connection.")