def METHOD_NAME(self, tmp_path):
    file_path = tmp_path/"wait_for_log_lines_1.log"
    node = DummyNode(log_path=file_path)
    lines = [" [shard  0] repair - rebuild_with_repair: started with keyspaces=drop_table_during_repair",
             "some line in between",
             "[shard  0] repair - rebuild_with_repair: finished with keyspaces=drop_table_during_repair"]
    write_thread = threading.Thread(target=write_to_file, args=(file_path, lines))
    write_thread.daemon = True
    file_path.touch()
    with wait_for_log_lines(node=node, start_line_patterns=["rebuild.*started with keyspaces="],
                            end_line_patterns=["rebuild.*finished with keyspaces="],
                            start_timeout=3, end_timeout=5):
        write_thread.start()