code: def flush(self):
      with open(self.filename, "w") as f:
          json.dump(self.json_dictionary, f, indent=4)
  
      self._flushed = True
  
file_path: TextAttack/textattack/loggers/json_summary_logger.py
imports: import json
  from textattack.shared import logger
  from .logger import Logger
label_desc: Use image node_id 3 for calling the JsonSummaryLogger obj's underlying member method code with example usage: obj.flush() without return types