code: def parse_args(pargs=None):
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description="Sample for pivot point and cross plotting",
      )
  
      parser.add_argument(
          "--data",
          required=False,
          default="../../datas/2005-2006-day-001.txt",
          help="Data to be read in",
      )
  
      parser.add_argument(
          "--cerebro",
          required=False,
          action="store",
          default="",
          help=("Arguments for cerebro"),
      )
  
      parser.add_argument(
          "--plot",
          "-p",
          nargs="?",
          required=False,
          metavar="kwargs",
          const="{}",
          help=("Plot (with additional args if passed"),
      )
  
      return parser.parse_args(pargs)
  
file_path: backtrader/samples/daysteps/daysteps.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import backtrader
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args(pargs) and returns: parser