code: def handle_data(context, data):
      print("handling bar: {}".format(data.current_dt))
  
      price = data.current(context.asset, "close")
      print("got price {price}".format(price=price))
  
      try:
          prices = data.history(
              context.asset, fields="close", bar_count=1, frequency="1D"
          )
          print("got {} price entries\n".format(len(prices), prices))
      except Exception as e:
          print(e)
  
imports: import pandas
  from catalyst import run_algorithm
  from catalyst.api import symbol
label_desc: Use image node_id 2 for calling a global function with example usage: handle_data(context, data) without return types