code: def test_longest_increasing_subsequence_optimized(self):
      sequence = [1, 101, 10, 2, 3, 100, 4, 6, 2]
      self.assertEqual(5, longest_increasing_subsequence(sequence))
  
imports: from algorithms.dp import max_profit_naive, max_profit_optimized, climb_stairs, climb_stairs_optimized, count, combination_sum_topdown, combination_sum_bottom_up, edit_distance, egg_drop, fib_recursive, fib_list, fib_iter, hosoya_testing, house_robber, Job, schedule, Item, get_maximum_value, longest_increasing_subsequence, longest_increasing_subsequence_optimized, longest_increasing_subsequence_optimized2, int_divide, find_k_factor, planting_trees, regex_matching
  import unittest
label_desc: Use image node_id 1 for calling the TestLongestIncreasingSubsequenceOptimized obj's underlying member method code with example usage: obj.test_longest_increasing_subsequence_optimized() without return types