code: def log_variables(self):
      self.summary_op = tf.summary.merge_all()
      if self.tensorboard_directory is not None:
          if self.tensorboard_run_directory is None:
              previous_runs = glob.glob(
                  os.path.join(
                      self.tensorboard_directory, "tensorboard_run*"
                  )
              )
              if len(previous_runs) == 0:
                  run_number = 0
              else:
                  run_number = (
                      max(
                          [
                              int(s.split("tensorboard_run_")[1])
                              for s in previous_runs
                          ]
                      )
                      + 1
                  )
              self.tensorboard_run_directory = os.path.join(
                  self.tensorboard_directory,
                  "tensorboard_run_%02d" % run_number,
              )
          self.summary_writer = tf.summary.FileWriter(
              self.tensorboard_run_directory, self.sess.graph
          )
  
imports: import os
  import glob
  import tensorflow
  import numpy
  from shutil import rmtree
  from tqdm import tqdm
  from deepneuro.models.model import DeepNeuroModel
  from deepneuro.utilities.util import add_parameter
label_desc: Use image node_id 7 for calling the TensorFlowModel obj's underlying member method code with example usage: obj.log_variables() without return types