code: def test_local_lift_dot22scalar():
      x = tensor.matrix()
      y = tensor.matrix()
      a = tensor.scalar()
      o = tensor.blas.Dot22Scalar()(x, y, a)
      f_cpu = theano.function([x, y, a], o)
      f_gpu = theano.function([x, y, a], o, mode=mode_with_gpu)
      assert not any(
          isinstance(n.op, tensor.blas.Dot22Scalar)
          for n in f_gpu.maker.fgraph.apply_nodes
      )
      assert any(
          isinstance(n.op, GpuGemm)
          for n in f_gpu.maker.fgraph.apply_nodes
      )
      x_val = np.random.random((2, 3)).astype(theano.config.floatX)
      y_val = np.random.random((3, 4)).astype(theano.config.floatX)
      a_val = 0.5
      utt.assert_allclose(
          f_cpu(x_val, y_val, a_val), f_gpu(x_val, y_val, a_val)
      )
      assert _check_stack_trace(f_gpu)
  
imports: from __future__ import absolute_import, print_function, division
  from nose.tools import assert_raises
  import numpy
  import theano
  from theano import tensor
  import theano.tensor.slinalg
  from theano.tests.breakpoint import PdbBreakpoint
  from theano.tests import unittest_tools, test_ifelse
  from theano.tensor.tests import test_basic
  from theano.gof.opt import check_stack_trace
  import theano.gpuarray
  from ..None import basic_ops
  from ..type import GpuArrayType, gpuarray_shared_constructor, get_context
  from ..basic_ops import GpuAlloc, GpuAllocEmpty, GpuReshape, GpuFromHost, HostFromGpu, host_from_gpu
  from ..blas import GpuGemm
  from ..elemwise import GpuCAReduceCuda, GpuCAReduceCPY, GpuElemwise, Elemwise, max_inputs_to_GpuElemwise
  from ..dnn import GpuDnnReduction
  from ..subtensor import GpuSubtensor
  from ..linalg import GpuCusolverSolve, cusolver_available, GpuCholesky
  from .config import mode_with_gpu, mode_without_gpu, test_ctx_name, SkipTest
  import unittest
  from theano.tensor.nnet import abstract_conv
  from theano.gpuarray import dnn, blas, opt
label_desc: Use image node_id 14 for calling a global function with example usage: test_local_lift_dot22scalar() without return types