code: def test1(self):
      # Test fix for error reported at
      # https://groups.google.com/d/topic/theano-users/BRK0UEB72XA/discussion
      w = tensor.imatrix()
      x, y = tensor.ivectors("x", "y")
      z = x * y
      f = theano.function(
          [w, y], z, givens=[(x, w)], rebuild_strict=False
      )
      z_val = f(
          np.ones((3, 5), dtype="int32"), np.arange(5, dtype="int32")
      )
      assert z_val.ndim == 2
      assert np.all(z_val == np.ones((3, 5)) * np.arange(5))
  
imports: from __future__ import absolute_import, print_function, division
  import unittest
  from nose.plugins.skip import SkipTest
  import numpy
  import theano
  from theano.tensor import dmatrix, iscalar, lscalar, dmatrices
  from theano import tensor
  from theano.compile import In
  from theano.compile import pfunc
  from theano.compile import shared
  from theano.compile import config
label_desc: Use image node_id 1 for calling the Test_rebuild_strict obj's underlying member method code with example usage: obj.test1() without return types