code: def parse_args():
      """
      :return:
      """
      parser = ArgumentParser(
          prog="VisualDL",
          description="VisualDL, a tool to visualize deep learning.",
          epilog="For more information: https://github.com/PaddlePaddle/VisualDL",
      )
  
      parser.add_argument(
          "--logdir",
          action="store",
          nargs="+",
          help="log file directory",
      )
  
      parser.add_argument(
          "--component_tabs",
          action="store",
          nargs="+",
          help="component tabs presented in html page.",
      )
  
      parser.add_argument(
          "-p",
          "--port",
          type=int,
          default=default_port,
          action="store",
          help="port of %(prog)s board",
      )
      parser.add_argument(
          "-t",
          "--host",
          type=str,
          default=default_host,
          action="store",
          help="bind %(prog)s board to ip/host",
      )
      parser.add_argument(
          "--model",
          type=str,
          action="store",
          default="",
          help="model file path",
      )
      parser.add_argument(
          "--cache-timeout",
          action="store",
          dest="cache_timeout",
          type=float,
          default=default_cache_timeout,
          help="memory cache timeout duration in seconds (default: %(default)s)",
      )
      parser.add_argument(
          "-L",
          "--language",
          type=str,
          action="store",
          default=None,
          help="specify the default language",
      )
      parser.add_argument(
          "--public-path",
          type=str,
          action="store",
          dest="public_path",
          default=None,
          help="set public path",
      )
      parser.add_argument(
          "--api-only",
          action="store_true",
          dest="api_only",
          default=False,
          help="serve api only",
      )
      parser.add_argument(
          "--verbose",
          "-v",
          action="count",
          default=0,
          help="set log level, use -vvv... to get more information",
      )
      parser.add_argument(
          "--version",
          action="version",
          version="%(prog)s {}".format(__version__),
      )
      parser.add_argument(
          "--product",
          type=str,
          action="store",
          default=default_product,
          help="specify the product",
      )
      parser.add_argument(
          "--disable-telemetry",
          action="store_false",
          dest="telemetry",
          default=True,
          help="disable telemetry",
      )
      parser.add_argument(
          "--theme",
          action="store",
          dest="theme",
          default=None,
          choices=support_themes,
          help="set theme",
      )
      parser.add_argument(
          "dest", nargs="?", help="set destination for log"
      )
      parser.add_argument("behavior", nargs="?")
  
      args = parser.parse_args()
  
      init_logger(args.verbose)
  
      return vars(args)
  
file_path: VisualDL/visualdl/server/args.py
imports: import socket
  import sys
  from argparse import ArgumentParser
  from visualdl import __version__
  from visualdl.server.log import init_logger
  from visualdl.server.log import logger
label_desc: Use image node_id 4 for calling a global function with example usage: parse_args() and returns: vars