def METHOD_NAME(line):
    try:
        obj = json.loads(line.decode("utf-8"))
    except:
        print(line)
    else:
        if "status" in obj:
            if "id" in obj:
                if obj["status"] not in [
                    "Waiting",
                    "Downloading",
                    "Verifying Checksum",
                    "Extracting",
                    "Preparing",
                    "Pushing",
                ]:
                    print("{}: {}".format(obj["status"], obj["id"]))
                else:
                    pass
            else:
                print(obj["status"])
        elif "error" in obj:
            raise Exception(obj["error"])
        else:
            print(line)