code: def test_sp1():
      """
      Test two different SequencePattern instances
      """
      sp = SequencePattern("maxmin_dup")
      y = sp.generate_output_sequence(range(10))
      assert all(y == np.array([9, 0, 2, 3, 4, 5, 6, 7, 8, 9]))
      sp = SequencePattern("sorted")
      y = sp.generate_output_sequence([5, 6, 1, 2, 9])
      assert all(y == np.array([1, 2, 5, 6, 9]))
      sp = SequencePattern("reversed")
      y = sp.generate_output_sequence(range(10))
      assert all(y == np.array([9, 8, 7, 6, 5, 4, 3, 2, 1, 0]))
  
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 2 for calling a global function with example usage: test_sp1() without return types