code: def test_sequences_packed_in_single_ndarray():
      dim = 2
      input_with_sequence_axis = C.sequence.input_variable(shape=(dim,))
  
      data = np.asarray([[1, 2], [2, 3]])
      op = C.sequence.last(input_with_sequence_axis)
      result = op.eval({input_with_sequence_axis: data})
      assert np.array_equal(result, [[2.0, 3.0]])
  
      result = op.eval({input_with_sequence_axis: (data, [True, True])})
      assert np.array_equal(result, [[1.0, 2.0], [2.0, 3.0]])
  
file_path: CNTK/bindings/python/cntk/tests/function_test.py
imports: import pytest
  import numpy
  import cntk
label_desc: Use image node_id 4 for calling a global function with example usage: test_sequences_packed_in_single_ndarray() without return types