code: def handle_data(context, data):
      history = data.history(
          symbol("btc_usd"), ["volume"], bar_count=288, frequency="5T"
      )
  
      print("\nnow: %s\n%s" % (data.current_dt, history))
      if not hasattr(context, "i"):
          context.i = 0
      context.i += 1
      if context.i > 5:
          raise Exception("stop")
  
imports: from catalyst.api import symbol
  from catalyst.utils.run_algo import run_algorithm
label_desc: Use image node_id 2 for calling a global function with example usage: handle_data(context, data) without return types