code: def show(inp_text, out_text, enc_atts, dec_atts, encdec_atts):
      enc_att, dec_att, encdec_att = (
          resize(enc_atts),
          resize(dec_atts),
          resize(encdec_atts),
      )
      attention = _get_attention(
          inp_text, out_text, enc_att, dec_att, encdec_att
      )
      att_json = json.dumps(attention)
      _show_attention(att_json)
  
file_path: tensor2tensor/tensor2tensor/visualization/attention.py
imports: import json
  import os
  import IPython.display
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: show(inp_text, out_text, enc_atts, dec_atts, encdec_atts) without return types