code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Bid/Ask Line Hierarchy",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
  
      parser.add_argument(
          "--data",
          "-d",
          action="store",
          required=False,
          default="../../datas/bidask.csv",
          help="data to add to the system",
      )
  
      parser.add_argument(
          "--dtformat",
          "-dt",
          required=False,
          default="%m/%d/%Y %H:%M:%S",
          help="Format of datetime in input",
      )
  
      parser.add_argument(
          "--sma",
          "-s",
          action="store_true",
          required=False,
          help="Add an SMA to the mix",
      )
  
      parser.add_argument(
          "--period",
          "-p",
          action="store",
          required=False,
          default=5,
          type=int,
          help="Period for the sma",
      )
  
      return parser.parse_args()
  
file_path: backtrader/samples/data-bid-ask/bidask.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import backtrader
  import backtrader.feeds
  import backtrader.indicators
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser