class_docstr: Logs attack results to a CSV.
class_docstr_tok: ["Logs","attack","results","to","a","CSV","."]
code: def flush(self):
      self.df.to_csv(
          self.filename, quoting=csv.QUOTE_NONNUMERIC, index=False
      )
      self._flushed = True
  
file_path: TextAttack/textattack/loggers/csv_logger.py
imports: import csv
  import pandas
  from textattack.shared import AttackedText, logger
  from .logger import Logger
label_desc: Use image node_id 3 for calling the CSVLogger obj's underlying member method code with example usage: obj.flush() without return types