code: def logAnalysis(analysis):
      # Log only the last value in the array
      log.info(
          "- sma_f:          {:.2f}".format(getLast(analysis, "sma_f"))
      )
      log.info(
          "- sma_s:          {:.2f}".format(getLast(analysis, "sma_s"))
      )
  
      log.info(
          "- rsi:            {:.2f}".format(getLast(analysis, "rsi"))
      )
      log.info(
          "- sma_r:          {:.2f}".format(getLast(analysis, "sma_r"))
      )
  
      log.info(
          "- macd:           {:.2f}".format(getLast(analysis, "macd"))
      )
      log.info(
          "- macdSignal:     {:.2f}".format(
              getLast(analysis, "macdSignal")
          )
      )
      log.info(
          "- macdHist:       {:.2f}".format(
              getLast(analysis, "macdHist")
          )
      )
  
      log.info(
          "- stoch_k:        {:.2f}".format(
              getLast(analysis, "stoch_k")
          )
      )
      log.info(
          "- stoch_d:        {:.2f}".format(
              getLast(analysis, "stoch_d")
          )
      )
  
      log.info(
          "- sma_test:       {}".format(getLast(analysis, "sma_test"))
      )
      log.info(
          "- macd_test:      {}".format(getLast(analysis, "macd_test"))
      )
  
      log.info(
          "- stoch_over_bought:   {}".format(
              getLast(analysis, "stoch_over_bought")
          )
      )
      log.info(
          "- stoch_over_sold:   {}".format(
              getLast(analysis, "stoch_over_sold")
          )
      )
  
      log.info(
          "- rsi_over_bought:       {}".format(
              getLast(analysis, "rsi_over_bought")
          )
      )
      log.info(
          "- rsi_over_sold:       {}".format(
              getLast(analysis, "rsi_over_sold")
          )
      )
  
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 9 for calling a global function with example usage: logAnalysis(analysis) without return types