code: def handle_data_polo_partial_candles(context, data):
      history = data.history(
          symbol("btc_usdt"), ["volume"], bar_count=10, frequency="4H"
      )
      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: import pytz
  from datetime import datetime
  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_polo_partial_candles(context, data) without return types