def METHOD_NAME(args, line, classes, files):
    if len(line) < 4:
        return True
    line = line.rstrip().rstrip(",")
    try:
        js = json.loads(line)
    except Exception as e:
        print(e, file=sys.stderr)
        return False
    sys.stderr.write(js["id"] + "\r")
    aliases = None
    labels = None
    if "aliases" in js and args.lang in js["aliases"]:
        aliases = js["aliases"][args.lang]
    if "labels" in js and args.lang in js["labels"]:
        labels = [js["labels"][args.lang]]
    if aliases is not None or labels is not None:
        for p in classes:
            if is_instance(js, classes[p]):
                save_label(aliases, labels, files[p], args.type)
    return True