class_docstr: Argument parser with default flags, and tensorboard helpers.
class_docstr_tok: ["Argument","parser","with","default","flags",",","and","tensorboard","helpers","."]
code: def __init__(self, *args, **kwargs):
      argparse.ArgumentParser.__init__(self, *args, **kwargs)
  
      # --- Query default logdir
      random_logdir = tempfile.mkdtemp(prefix="tensorboard_")
      default_logdir = os.environ.get(
          "TENSORBOARD_DEFAULT_LOGDIR", random_logdir
      )
  
      # --- Add the default options
      self.add("--logdir", default_logdir, help="tensorboard dir")
      self.add("--tensorboard", True, help="should generate summaries?")
      self.add(
          "--assert_gpu",
          True,
          help="asserts on missing GPU accelerator",
      )
      self.add("--tf_quiet", True, help="no verbose tf startup")
  
file_path: graphics/tensorflow_graphics/projects/pointnet/helpers.py
imports: from __future__ import print_function
  import argparse
  import os
  import tempfile
  import time
  import tensorflow
  import termcolor
label_desc: Use image node_id 1 to create a new ArgumentParser object from inherited base classes: argparse with example: obj = ArgumentParser()