code: def launch_tensorboard_in_background(log_dir):
      """
      To log the Tensorflow graph when using rl-algs
      algorithms, you can run the following code
      in your main script:
          import threading, time
          def start_tensorboard(session):
              time.sleep(10) # Wait until graph is setup
              tb_path = osp.join(logger.get_dir(), 'tb')
              summary_writer = tf.summary.FileWriter(tb_path, graph=session.graph)
              summary_op = tf.summary.merge_all()
              launch_tensorboard_in_background(tb_path)
          session = tf.get_default_session()
          t = threading.Thread(target=start_tensorboard, args=([session]))
          t.start()
      """
      import subprocess
  
      subprocess.Popen(["tensorboard", "--logdir", log_dir])
  
imports: import numpy
  import tensorflow
  import copy
  import os
  import functools
  import collections
  import multiprocessing
label_desc: Use image node_id 28 for calling a global function with example usage: launch_tensorboard_in_background(log_dir) without return types