def METHOD_NAME(path, file_name, examples):
    print(f"Generating split of size {len(examples)} at {path}")
    os.makedirs(path, exist_ok=True)
    with open(os.path.join(path, file_name), "w") as f:
        for example in examples:
            f.write(f"INSTRUCTION: {example.inputs}\n")
            f.write(f"RESPONSE: {example.targets}\n")
            f.write("SOURCE: LogicInference Dataset e\n\n")