class_docstr: doc
class_docstr_tok: ["doc"]
docstr: doc
docstr_tok: ["doc"]
code: def add_arg(
      self, name, type, default, help, positional_arg=False, **kwargs
  ):
      """doc"""
      prefix = "" if positional_arg else "--"
      type = str2bool if type == bool else type
      self._group.add_argument(
          prefix + name,
          default=default,
          type=type,
          help=help + " Default: %(default)s.",
          **kwargs,
      )
  
file_path: PGL/ogb_examples/linkproppred/ogbl-ppa/utils/args.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from __future__ import absolute_import
  import six
  import os
  import sys
  import argparse
  import logging
  import paddle.fluid
label_desc: Use image node_id 2 for calling the ArgumentGroup obj's underlying member method code with example usage: obj.add_arg(name, type, default, help, positional_arg) without return types