code: def write_train(self, tag, scalar_value, global_step):
      self.tb_train_writer.add_scalar(tag, scalar_value, global_step)
  
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 2 for calling the TBWriter obj's underlying member method code with example usage: obj.write_train(tag, scalar_value, global_step) without return types