code: def test_run(main=False):
      for stlike in [False, True]:
          datas = [testcommon.getdata(i) for i in range(chkdatas)]
          testcommon.runtest(
              datas,
              TestStrategy,
              printdata=main,
              printops=main,
              stocklike=stlike,
              plot=main,
          )
  
file_path: backtrader/tests/test_strategy_unoptimized.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import time
  import testcommon
  import backtrader
  import backtrader.indicators
label_desc: Use image node_id 1 for calling a global function with example usage: test_run(main) without return types