code: def write_patch_file(self, patch_file, lines_to_write):
          
          with open(patch_file, 'w') as f:
              f.writelines(lines_to_write)
docs: Write lines_to_write to a the file called patch_file
  
          :param patch_file: file name of the patch to generate
          :param lines_to_write: lines to write to the file - they should be \n terminated
          :type lines_to_write: list[str]
  
          :return: None