code: def _check_types(self, graph, graph_gpu, f_type, f_gpu_type):
      assert isinstance(graph.maker.fgraph.toposort()[-1].op, f_type)
      assert (
          len(
              [
                  node
                  for node in graph_gpu.maker.fgraph.toposort()
                  if isinstance(node.op, f_gpu_type)
              ]
          )
          == 1
      )
  
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 3 for calling the test_SoftMax obj's underlying member method code with example usage: obj._check_types(graph, graph_gpu, f_type, f_gpu_type) without return types