code: def test0(self):
      # Reported in https://github.com/Theano/Theano/issues/5730
      x = tensor.tensor3()
      y = tensor.tensor3()
      z = tensor.batched_dot(x, y[:, 0, :, np.newaxis])
      f = theano.function([x, y], z, mode=mode_with_gpu)
      x_num = np.arange(32 * 19 * 600, dtype=config.floatX).reshape(
          (32, 19, 600)
      )
      y_num = np.arange(7 * 32 * 600, dtype=config.floatX).reshape(
          (32, 7, 600)
      )
      f(x_num, y_num)
      assert f.maker.fgraph.toposort()[-2].op.inplace
  
imports: from __future__ import absolute_import, print_function, division
  from unittest import TestCase
  from nose.plugins.skip import SkipTest
  import itertools
  import numpy
  import theano
  from theano import config
  from theano import tensor
  from theano.tests import unittest_tools
  from theano.tensor.blas import gemv, gemv_inplace, gemm_inplace, _dot22, batched_dot
  from theano.tensor.tests.test_blas import TestGer, BaseGemv
  from ..None import gpuarray_shared_constructor
  from .config import mode_with_gpu, test_ctx_name
  from .test_basic_ops import makeTester, rand
  from ..blas import gpugemv_inplace, gpugemv_no_inplace, gpugemm_inplace, gpugemm_no_inplace, gpugemmbatch_inplace, gpuger_inplace, gpuger_no_inplace, GpuGer, GpuGemm, gpu_dot22
label_desc: Use image node_id 1 for calling the TestGpuGemmBatchStrided obj's underlying member method code with example usage: obj.test0() without return types