code: def parse_args():
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description="Volume Filling Sample",
      )
  
      parser.add_argument(
          "--data",
          required=False,
          default="../../datas/2006-volume-day-001.txt",
          help="Data to be read in",
      )
  
      parser.add_argument(
          "--cash",
          required=False,
          action="store",
          default=500e6,
          type=float,
          help=("Starting cash"),
      )
  
      parser.add_argument(
          "--filler",
          required=False,
          action="store",
          default=None,
          choices=FILLERS.keys(),
          help=("Apply a volume filler for the execution"),
      )
  
      parser.add_argument(
          "--filler-args",
          required=False,
          action="store",
          default=None,
          help=(
              "kwargs for the filler with format:\n"
              "\n"
              "arg1=val1,arg2=val2..."
          ),
      )
  
      parser.add_argument(
          "--stakeperc",
          required=False,
          action="store",
          type=float,
          default=10.0,
          help=("Percentage of 1st bar to use for stake"),
      )
  
      parser.add_argument(
          "--opbreak",
          required=False,
          action="store",
          type=int,
          default=10,
          help=("Bars to wait for new op after completing " "another"),
      )
  
      parser.add_argument(
          "--fromdate",
          "-f",
          required=False,
          default=None,
          help="Starting date in YYYY-MM-DD format",
      )
  
      parser.add_argument(
          "--todate",
          "-t",
          required=False,
          default=None,
          help="Ending date in YYYY-MM-DD format",
      )
  
      parser.add_argument(
          "--plot",
          required=False,
          action="store_true",
          help=("Plot the result"),
      )
  
      return parser.parse_args()
  
file_path: backtrader/samples/volumefilling/volumefilling.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import os.path
  import time
  import sys
  import backtrader
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args() and returns: parser