code: def parse_args():
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description="Sample for Close Orders with daily data",
      )
  
      parser.add_argument(
          "--infile",
          "-i",
          required=False,
          default="../../datas/2006-min-005.txt",
          help="File to be read in",
      )
  
      parser.add_argument(
          "--csvformat",
          "-c",
          required=False,
          default="bt",
          choices=[
              "bt",
              "visualchart",
              "sierrachart",
              "yahoo",
              "yahoo_unreversed",
          ],
          help="CSV Format",
      )
  
      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(
          "--eosbar",
          required=False,
          action="store_true",
          help=(
              "Consider a bar with the end of session time to"
              "be the end of the session"
          ),
      )
  
      parser.add_argument(
          "--tend",
          "-te",
          default=None,
          required=False,
          help="End time for the Session Filter (HH:MM)",
      )
  
      return parser.parse_args()
  
file_path: backtrader/samples/order-close/close-minute.py
imports: from __future__ import absolute_import, division, print_function
  import argparse
  import datetime
  import backtrader
  import backtrader.feeds
label_desc: Use image node_id 3 for calling a global function with example usage: parse_args() and returns: parser