code: def parse_args():
      parser = argparse.ArgumentParser(
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description="BidAsk to OHLC",
      )
  
      parser.add_argument(
          "--data",
          required=False,
          default="../../datas/bidask2.csv",
          help="Data file to be read in",
      )
  
      parser.add_argument(
          "--compression",
          required=False,
          default=2,
          type=int,
          help="How much to compress the bars",
      )
  
      parser.add_argument(
          "--plot",
          required=False,
          action="store_true",
          help="Plot the vars",
      )
  
      return parser.parse_args()
  
file_path: backtrader/samples/bidask-to-ohlc/bidask-to-ohlc.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 2 for calling a global function with example usage: parse_args() and returns: parser