code: def test_sequence_softmax():
      np.random.seed(0)
      a = np.float32(np.random.rand(20, 100, 8))
      src = C.sequence.input_variable(
          shape=(8), sequence_axis=C.Axis("Seq")
      )
      out = C.sequence.softmax(src)
      val = out.eval({src: a})
      expected = np_softmax(a, 1)
      assert np.allclose(val, expected)
  
imports: from __future__ import division
  import numpy
  import pytest
  import cntk
  from .ops_test_utils import cntk_device
  from cntk.tests.test_utils import _to_dense, _to_csr
  from .ops_test_utils import unittest_helper, _test_unary_op, _test_binary_op, AA, precision, PRECISION_TO_TYPE, cntk_device
  from cntk import Value
  from cntk.axis import Axis
  from cntk.internal import sanitize_dtype_cntk
  from ..None import constant
label_desc: Use image node_id 6 for calling a global function with example usage: test_sequence_softmax() without return types