human
Complete this python program:
def CheckServiceHealth(device, logger, callback):
assistant
#Here is the Python program you requested.

    """Simple scenario which pings the service_health endpoint of the service.  This endpoint
    should return a json-encoded status message, which may contain a list of alerts if the
    server has judged itself to be unhealthy.  If any alerts are reported back, this scenario
    will dispatch them.
    """
    def _OnResponse(response):
        response_dict = www_util.ParseJSONResponse(response)
        if (response_dict.get('status') == 'alert'):
            logger.error(_FormatServiceHealthReport(response_dict))
        else:
            logger.info('CheckServiceHealth    passed.')
        callback()
    device.SendRequest('service_health', _OnResponse, 'GET')