code: def print_memory(context):
      if not context:
          return
  
      max_sent_len = max(
          map(
              len,
              map(
                  lambda z: reduce(lambda x, y: x + " " + y, z), context
              ),
          )
      )
  
      print("-" * max_sent_len)
      for sent in context:
          print(" ".join(sent))
      print("-" * max_sent_len)
  
file_path: nlp-architect/examples/memn2n_dialogue/interactive_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import itertools
  from builtins import input
  from copy import copy
  from functools import reduce
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: print_memory(context) without return types