code: def showAttention(input_sentence, output_words, attentions):
      # Set up figure with colorbar
      fig = plt.figure()
      ax = fig.add_subplot(111)
      cax = ax.matshow(attentions.numpy(), cmap="bone")
      fig.colorbar(cax)
  
      # Set up axes
      ax.set_xticklabels(
          [""] + input_sentence.split(" ") + ["<EOS>"], rotation=90
      )
      ax.set_yticklabels([""] + output_words)
  
      # Show label at every tick
      ax.xaxis.set_major_locator(ticker.MultipleLocator(1))
      ax.yaxis.set_major_locator(ticker.MultipleLocator(1))
  
      plt.show()
  
imports: from __future__ import unicode_literals, print_function, division
  import math
  import time
  from io import open
  import unicodedata
  import string
  import re
  import random
  import operator
  import torch
  import torch.nn
  from torch import optim
  import torch.nn.functional
  from lightwood.helpers.torch import LightwoodAutocast
  from lightwood.helpers.log import log
label_desc: Use image node_id 13 for calling a global function with example usage: showAttention(input_sentence, output_words, attentions) without return types