code: def setUp(self):
      seed_rng()
      # Take into account any mode that may be defined in a child class
      # and it can be None
      mode = getattr(self, "mode", None)
      if mode is None:
          mode = theano.compile.get_default_mode()
      # This mode seems to be the minimal one including the shape_i
      # optimizations, if we don't want to enumerate them explicitly.
      self.mode = mode.including("canonicalize")
  
imports: from __future__ import absolute_import, print_function, division
  from copy import copy, deepcopy
  from functools import wraps
  import logging
  import sys
  import unittest
  from parameterized import parameterized
  from nose.tools import assert_raises
  from six import integer_types
  from six.moves import StringIO
  import numpy
  import theano
  import theano.tensor
  from theano import config
label_desc: Use image node_id 1 for calling the InferShapeTester obj's underlying member method code with example usage: obj.setUp() without return types