code: def parse_args():
      parser = argparse.ArgumentParser(description="MultiData Strategy")
  
      parser.add_argument(
          "--data",
          "-d",
          default="../../datas/2006-day-001.txt",
          help="data to add to the system",
      )
  
      parser.add_argument(
          "--fromdate",
          "-f",
          default="2006-01-01",
          help="Starting date in YYYY-MM-DD format",
      )
  
      parser.add_argument(
          "--todate",
          "-t",
          default="2006-12-31",
          help="Starting date in YYYY-MM-DD format",
      )
  
      parser.add_argument(
          "--period",
          default=15,
          type=int,
          help="Period to apply to the Simple Moving Average",
      )
  
      parser.add_argument(
          "--onlylong",
          "-ol",
          action="store_true",
          help="Do only long operations",
      )
  
      parser.add_argument(
          "--writercsv",
          "-wcsv",
          action="store_true",
          help="Tell the writer to produce a csv stream",
      )
  
      parser.add_argument(
          "--csvcross",
          action="store_true",
          help="Output the CrossOver signals to CSV",
      )
  
      parser.add_argument(
          "--cash", default=100000, type=int, help="Starting Cash"
      )
  
      parser.add_argument(
          "--comm",
          default=2,
          type=float,
          help="Commission for operation",
      )
  
      parser.add_argument(
          "--mult", default=10, type=int, help="Multiplier for futures"
      )
  
      parser.add_argument(
          "--margin",
          default=2000.0,
          type=float,
          help="Margin for each future",
      )
  
      parser.add_argument(
          "--stake",
          default=1,
          type=int,
          help="Stake to apply in each operation",
      )
  
      parser.add_argument(
          "--plot", "-p", action="store_true", help="Plot the read data"
      )
  
      parser.add_argument(
          "--numfigs",
          "-n",
          default=1,
          help="Plot using numfigs figures",
      )
  
      return parser.parse_args()
  
file_path: backtrader/samples/writer-test/writer-test.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import backtrader
  import backtrader.feeds
  import backtrader.indicators
  from backtrader.analyzers import SQN
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args() and returns: parser