code: def handle_data(context, data):
      dt = data.current_dt
  
      if (
          context.last_bar is None
          or (context.last_bar + timedelta(minutes=15)) <= dt
      ):
          context.last_bar = dt
      else:
          return
  
      log.info("BAR {}".format(dt))
      try:
          _handle_data_rsi_only(context, data)
      except Exception as e:
          log.warn("aborting the bar on error {}".format(e))
          context.errors.append(e)
  
      if len(context.errors) > 0:
          log.info("the errors:\n{}".format(context.errors))
  
file_path: catalyst/catalyst/examples/rsi_profit_target.py
imports: from datetime import timedelta
  import pandas
  import numpy
  import talib
  from logbook import Logger
  from catalyst.api import order, symbol, record, get_open_orders
  from catalyst.utils.run_algo import run_algorithm
label_desc: Use image node_id 4 for calling a global function with example usage: handle_data(context, data) without return types