code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Download Yahoo CSV Finance Data"
      )
  
      parser.add_argument(
          "--ticker", required=True, help="Ticker to be downloaded"
      )
  
      parser.add_argument(
          "--reverse",
          action="store_true",
          default=False,
          help="Do reverse the downloaded files",
      )
  
      parser.add_argument(
          "--timeframe",
          default="d",
          help="Timeframe: d -> day, w -> week, m -> month",
      )
  
      parser.add_argument(
          "--fromdate",
          required=True,
          help="Starting date in YYYY-MM-DD format",
      )
  
      parser.add_argument(
          "--todate",
          required=True,
          help="Ending date in YYYY-MM-DD format",
      )
  
      parser.add_argument(
          "--outfile", required=True, help="Output file name"
      )
  
      return parser.parse_args()
  
file_path: backtrader/tools/yahoodownload.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import collections
  import datetime
  import io
  import logging
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser