code: def runstrat():
      args = parse_args()
  
      cerebro = bt.Cerebro()
  
      data = btfeeds.GenericCSVData(
          dataname=args.data,
          dtformat="%d/%m/%y",
          # tmformat='%H%M%S',  # already the default value
          # datetime=0,  # position at default
          time=1,  # position of time
          open=5,  # position of open
          high=5,
          low=5,
          close=5,
          volume=7,
          openinterest=-1,  # -1 for not present
          timeframe=bt.TimeFrame.Ticks,
      )
  
      cerebro.resampledata(
          data,
          timeframe=bt.TimeFrame.Ticks,
          compression=args.compression,
      )
  
      cerebro.addstrategy(St)
  
      cerebro.run()
      if args.plot:
          cerebro.plot(style="bar")
  
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 1 for calling a global function with example usage: runstrat() without return types