def METHOD_NAME():
    json_file_name = sys.argv[1]
    errors = {}
    with open(json_file_name) as json_file:
        try:
            meta_data = json.load(json_file)
            for (k, v) in meta_data.items():
                r = run(k, v)
                if not r:
                    errors[k] = r
        except json.decoder.JSONDecodeError as err:
            print("cannot load json from " + json_file_name + " error:" +
                  str(err))
            sys.exit(2)
    with open(json_file_name, "w") as f:
        s = (json.dumps(meta_data, indent=4, sort_keys=True))
        f.write(s)
    if errors:
        for (k, v) in errors.items():
            print("%s failed." % (meta_data[k]["meta"]["xmodel"], ))
        sys.exit(1)
    return 0