code: def _cmp(self, n, m, f, f_gpu):
      data = np.arange(n * m, dtype="float32").reshape(n, m)
      out = f(data)
      gout = f_gpu(data)
      utt.assert_allclose(out, gout)
  
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import unittest
  import theano
  import theano.tensor
  import theano.tests.unittest_tools
  from .config import mode_with_gpu, mode_without_gpu
  from ..nnet import GpuCrossentropySoftmaxArgmax1HotWithBias, GpuCrossentropySoftmax1HotWithBiasDx, GpuSoftmaxWithBias, GpuSoftmax
label_desc: Use image node_id 2 for calling the test_SoftMax obj's underlying member method code with example usage: obj._cmp(n, m, f, f_gpu) without return types