code: def softmax(self, data):
      e_data = np.exp(data - np.max(data))
      return e_data / e_data.sum()
  
imports: import itertools
  import numpy
  import pytest
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.ops.tests.iOS14 import backends
  from coremltools.converters.mil.mil.ops.tests.testing_utils import UNK_SYM, run_compare_builder
  from coremltools.converters.mil.testing_reqs import compute_units
  from coremltools.converters.mil.testing_utils import get_core_ml_prediction
  from coremltools.models.utils import _macos_version
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