def METHOD_NAME(kind, target, nnadapter_device_name, op):
    if not static_file.exists():
        global statics_data
    else:
        with open(static_file_path_str, "rb") as f:
            statics_data = pickle.load(f)
    statics_data["targets"].add(target)
    if target == "NNAdapter":
        if nnadapter_device_name == "":
            print(
                "Args Error: Please set nnadapter_device_names when target=nnadapter!"
            )
            assert nnadapter_device_name != ""
        statics_data["nnadapter_device_names"].add(nnadapter_device_name)
        statics_data[kind][target][nnadapter_device_name].add(op)
    else:
        statics_data[kind][target].add(op)
    with open(static_file_path_str, "wb") as f:
        pickle.dump(statics_data, f)