def write_file()

in scripts/utils/file_functions.py [0:0]


def write_file(file_path: str, data: list[dict]):
    with open(file_path, "w") as f:
        json.dump(data, f, indent=4)
    
    return 0