code: def flush(self):
      self.tb_train_writer.flush()
      self.tb_valid_writer.flush()
  
file_path: DeepPavlov/deeppavlov/core/common/log_events.py
imports: from logging import getLogger
  from typing import Optional
  from deeppavlov.core.commands.utils import expand_path
label_desc: Use image node_id 4 for calling the TBWriter obj's underlying member method code with example usage: obj.flush() without return types