code: def test_badviewmap_ref(self):
      x = theano.tensor.dvector()
      y = theano.tensor.dvector()
      f = theano.function(
          [x, y], self.BadAddRef()(x, y), mode="DEBUG_MODE"
      )
      try:
          f([1, 2], [3, 4])
          assert False  # failed to raise error
      except debugmode.BadViewMap:
          return
  
imports: from __future__ import absolute_import, print_function, division
  import sys
  import unittest
  from nose.plugins.skip import SkipTest
  import numpy
  from six import reraise
  from theano import config
  from theano import gof
  import theano
  from theano.compat import exc_message
  from theano.compile import debugmode
  import theano.tensor
  from theano.tests import unittest_tools
label_desc: Use image node_id 1 for calling the Test_ViewMap obj's underlying member method code with example usage: obj.test_badviewmap_ref() without return types