code: def test_random_integers(self):
      # Test that RandomStreams.random_integers generates the same
      # results as numpy.  We use randint() for numpy since
      # random_integers() is deprecated.
  
      # Check over two calls to see if the random state is correctly updated.
      random = RandomStreams(utt.fetch_seed())
      fn = function([], random.random_integers((20, 20), -5, 5))
      fn_val0 = fn()
      fn_val1 = fn()
  
      rng_seed = np.random.RandomState(utt.fetch_seed()).randint(
          2**30
      )
      rng = np.random.RandomState(int(rng_seed))  # int() is for 32bit
      numpy_val0 = rng.randint(-5, 6, size=(20, 20))
      numpy_val1 = rng.randint(-5, 6, size=(20, 20))
  
      assert np.all(fn_val0 == numpy_val0)
      assert np.all(fn_val1 == numpy_val1)
  
imports: from __future__ import absolute_import, print_function, division
  import sys
  import unittest
  import numpy
  from theano.tensor import raw_random
  from theano.tensor.shared_randomstreams import RandomStreams
  from theano import function, shared
  from theano import tensor
  from theano import compile, config, gof
  from theano.tests import unittest_tools
label_desc: Use image node_id 10 for calling the T_SharedRandomStreams obj's underlying member method code with example usage: obj.test_random_integers() without return types