code: def softmax(self, data):
      e_data = np.exp(data - np.max(data))
      return e_data / e_data.sum()
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/mil/mil/ops/tests/test_random.py
imports: from coremltools.converters.mil import testing_reqs
  from coremltools.converters.mil.testing_reqs import *
  from coremltools.converters.mil.testing_utils import get_core_ml_prediction
  from coremltools._deps import _IS_MACOS
  from .testing_utils import UNK_SYM, run_compare_builder
label_desc: Use image node_id 1 for calling the TestRandomCategorical obj's underlying member method code with example usage: obj.softmax(data) and returns: unknown