code: def parse_args():
      parser = argparse.ArgumentParser(description="Pandas test script")
  
      parser.add_argument(
          "--dataname",
          default="",
          required=False,
          help="File Data to Load",
      )
  
      parser.add_argument(
          "--dataname2",
          default="",
          required=False,
          help="Larger timeframe file to load",
      )
  
      parser.add_argument(
          "--runnext",
          action="store_true",
          help="Use next by next instead of runonce",
      )
  
      parser.add_argument(
          "--nopreload",
          action="store_true",
          help="Do not preload the data",
      )
  
      parser.add_argument(
          "--oldsync",
          action="store_true",
          help="Use old data synchronization method",
      )
  
      parser.add_argument(
          "--oldrs", action="store_true", help="Use old resampler"
      )
  
      parser.add_argument(
          "--replay",
          action="store_true",
          help="Replay instead of resample",
      )
  
      parser.add_argument(
          "--noresample",
          action="store_true",
          help="Do not resample, rather load larger timeframe",
      )
  
      parser.add_argument(
          "--timeframe",
          default="weekly",
          required=False,
          choices=["daily", "weekly", "monthly"],
          help="Timeframe to resample to",
      )
  
      parser.add_argument(
          "--compression",
          default=1,
          required=False,
          type=int,
          help="Compress n bars into 1",
      )
  
      parser.add_argument(
          "--indicators",
          action="store_true",
          help="Wether to apply Strategy with indicators",
      )
  
      parser.add_argument(
          "--onlydaily",
          action="store_true",
          help="Indicator only to be applied to daily timeframe",
      )
  
      parser.add_argument(
          "--period",
          default=10,
          required=False,
          type=int,
          help="Period to apply to indicator",
      )
  
      parser.add_argument(
          "--plot",
          required=False,
          action="store_true",
          help="Plot the chart",
      )
  
      return parser.parse_args()
  
file_path: backtrader/samples/data-multitimeframe/data-multitimeframe.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import backtrader
  import backtrader.feeds
  import backtrader.indicators
  from backtrader import ResamplerDaily, ResamplerWeekly, ResamplerMonthly
  from backtrader import ReplayerDaily, ReplayerWeekly, ReplayerMonthly
  from backtrader.utils import flushfile
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args() and returns: parser