code: def write_export_node_to_file(file_object, export_elements):
          
          for export_element in export_elements:
              # Order,Activity,Condition,Who,Subprocess,Terminated
              file_object.write(
                  export_element["Order"] + "," + export_element["Activity"] + "," + export_element["Condition"] + "," +
                  export_element["Who"] + "," + export_element["Subprocess"] + "," + export_element["Terminated"] + "\n")
docs: Exporting process to CSV file
  
          :param file_object: object of File class,
          :param export_elements: a dictionary object. The key is a node ID, value is a dictionary of parameters that
                 will be used in exported CSV document.