import requests


def healthcheck(url):
    """
    check the health of server

    Args:
        url:``str``
            url of healthcheck endpoint
            
    Return:
        if live True else False
    """
    try:
        r = requests.get('http://localhost:5000/healthcheck')
        output = r.json()
        _ = output['Success']
        return True
    except:
        return False