class_docstr: base trainer class.
  contains methods for training, validation, and writing output.
class_docstr_tok: ["base","trainer","class",".","contains","methods","for","training",",","validation",",","and","writing","output","."]
code: def push_opt_to_tb(self):
      opt_str = options.opt_to_string(self.opt)
      tb_datapack = tensorboard_helper.TensorboardDatapack()
      tb_datapack.set_training(False)
      tb_datapack.set_iteration(self.iteration)
      tb_datapack.add_text({"options": opt_str})
      self.tb_pusher.push_to_tensorboard(tb_datapack)
  
file_path: ml-neuman/trainers/base_trainer.py
imports: import os
  import math
  import abc
  import time
  import tqdm
  from trainers import tensorboard_helper
  from options import options
label_desc: Use image node_id 2 for calling the BaseTrainer obj's underlying member method code with example usage: obj.push_opt_to_tb() without return types