code: def has_only_gpu_op(self, function):
      has_cpu_instance = False
      has_gpu_instance = False
      for node in function.maker.fgraph.apply_nodes:
          if isinstance(node.op, ConnectionistTemporalClassification):
              has_cpu_instance = True
  
          if isinstance(
              node.op, GpuConnectionistTemporalClassification
          ):
              has_gpu_instance = True
      return has_gpu_instance and (not has_cpu_instance)
  
imports: from __future__ import division, absolute_import, print_function
  import unittest
  import numpy
  import theano
  import theano.tensor
  from theano.tests import unittest_tools
  import theano.gpuarray
  from theano.gpuarray.ctc import gpu_ctc, GpuConnectionistTemporalClassification
  from theano.tensor.nnet.ctc import ctc, ctc_available, ConnectionistTemporalClassification
  from theano.tensor.nnet.tests.test_ctc import setup_torch_case, setup_ctc_case, setup_grad_case
  from .config import mode_with_gpu, mode_without_gpu
label_desc: Use image node_id 10 for calling the TestCTC obj's underlying member method code with example usage: obj.has_only_gpu_op(function) and returns: unknown