code: def analyze(context, results):
      # Save results in CSV file
      filename = os.path.splitext(os.path.basename("talib_simple"))[0]
      results.to_csv(filename + ".csv")
  
      log.info("the daily stats:\n{}".format(get_pretty_stats(results)))
      chart(context, context.prices, context.analysis, results)
      pass
  
imports: import os
  import matplotlib.pyplot
  import numpy
  import pandas
  import talib
  from logbook import Logger
  from matplotlib.dates import date2num
  from mpl_finance import candlestick_ohlc
  from catalyst import run_algorithm
  from catalyst.api import order, order_target_percent, symbol
  from catalyst.exchange.utils.stats_utils import get_pretty_stats
label_desc: Use image node_id 4 for calling a global function with example usage: analyze(context, results) without return types