code: def parse_args(pargs=None):
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description=("Sample Skeleton"),
      )
  
      parser.add_argument(
          "--data0",
          default="../../datas//2006-min-005.txt",
          required=False,
          help="Data to read in",
      )
  
      # Defaults for dates
      parser.add_argument(
          "--fromdate",
          required=False,
          default="",
          help="Date[time] in YYYY-MM-DD[THH:MM:SS] format",
      )
  
      parser.add_argument(
          "--todate",
          required=False,
          default="",
          help="Date[time] in YYYY-MM-DD[THH:MM:SS] format",
      )
  
      parser.add_argument(
          "--cerebro",
          required=False,
          default="",
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      parser.add_argument(
          "--broker",
          required=False,
          default="",
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      parser.add_argument(
          "--sizer",
          required=False,
          default="",
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      parser.add_argument(
          "--strat",
          required=False,
          default="",
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      parser.add_argument(
          "--plot",
          required=False,
          default="",
          nargs="?",
          const="{}",
          metavar="kwargs",
          help="kwargs in key=value format",
      )
  
      return parser.parse_args(pargs)
  
file_path: backtrader/samples/psar/psar-intraday.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import backtrader
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args(pargs) and returns: parser