code: def np_softmax(a, axis):
      m = np.max(a, axis, keepdims=True)
      e = np.exp((a - m))
      s = np.sum(e, axis, keepdims=True)
      return e / s
  
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 5 for calling a global function with example usage: np_softmax(a, axis) and returns: unknown