code: def test_main3():
      """
      Integration test - training then prediction: attention model
      """
      import tempfile
  
      wfn = "tmp_weights.tfl"
      if os.path.exists(wfn):
          os.unlink(wfn)
      arglist = "-e 2 -o tmp_weights.tfl -v -v -v -v -m embedding_attention train 5000"
      arglist = arglist.split(" ")
      tf.reset_default_graph()
      ts2s = CommandLine(arglist=arglist)
      assert os.path.exists(wfn)
  
      arglist = "-i tmp_weights.tfl -v -v -v -v -m embedding_attention predict 1 2 3 4 5 6 7 8 9 0"
      arglist = arglist.split(" ")
      tf.reset_default_graph()
      ts2s = CommandLine(arglist=arglist)
      assert len(ts2s.prediction_results[0][0]) == 10
  
imports: from __future__ import division, print_function
  import os
  import sys
  import tflearn
  import argparse
  import json
  import numpy
  import tensorflow.compat.v1
  from tensorflow.contrib.legacy_seq2seq.python.ops import seq2seq
  from tensorflow.python.ops import rnn_cell
label_desc: Use image node_id 10 for calling a global function with example usage: test_main3() without return types