code: def isBuy(context, analysis):
      # Bullish SMA Crossover
      if getLast(analysis, "sma_test") == 1:
          # Bullish MACD
          if getLast(analysis, "macd_test") == 1:
              return True
  
      # # Bullish Stochastics
      # if(getLast(analysis, 'stoch_over_sold') == 1):
      #     return True
  
      # # Bullish RSI
      # if(getLast(analysis, 'rsi_over_sold') == 1):
      #     return True
  
      return False
  
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 6 for calling a global function with example usage: isBuy(context, analysis) and returns: False, True