class_docstr: Argument parser with default flags, and tensorboard helpers.
class_docstr_tok: ["Argument","parser","with","default","flags",",","and","tensorboard","helpers","."]
docstr: WARNING: programmatically changes the logdir flags.
docstr_tok: ["WARNING",":","programmatically","changes","the","logdir","flags","."]
code: def parse_args(self, args=None, namespace=None):
      """WARNING: programmatically changes the logdir flags."""
      flags = super(ArgumentParser, self).parse_args(args)
  
      # --- setup automatic logdir (timestamp)
      if "timestamp" in flags.logdir:
          timestamp = time.strftime("%a%d_%H:%M:%S")  # "Tue19_12:02:26"
          flags.logdir = flags.logdir.replace("timestamp", timestamp)
  
      if flags.tf_quiet:
          set_tensorflow_log_level(3)
  
      if flags.assert_gpu:
          assert_gpu_available()
  
      # --- ensure logdir ends in /
      if flags.logdir[-1] != "/":
          flags.logdir += "/"
  
      return flags
  
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 3 for calling the ArgumentParser obj's underlying member method code with example usage: obj.parse_args(args, namespace) and returns: flags