code: def parse_args(pargs=None):
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description="Sample for strategy selection",
      )
  
      parser.add_argument(
          "--data",
          required=False,
          default="../../datas/2005-2006-day-001.txt",
          help="Data to be read in",
      )
  
      parser.add_argument(
          "--maxcpus",
          required=False,
          action="store",
          default=None,
          type=int,
          help="Limit the numer of CPUs to use",
      )
  
      parser.add_argument(
          "--optreturn",
          required=False,
          action="store_true",
          help="Return reduced/mocked strategy object",
      )
  
      return parser.parse_args(pargs)
  
file_path: backtrader/samples/strategy-selection/strategy-selection.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