code: def test_deterministic():
      seed = utt.fetch_seed()
      sample_size = (10, 20)
  
      R = MRG_RandomStreams(seed=seed)
      u = R.uniform(size=sample_size)
      f = theano.function([], u)
  
      fsample1 = f()
      fsample2 = f()
      assert not np.allclose(fsample1, fsample2)
  
      R2 = MRG_RandomStreams(seed=seed)
      u2 = R2.uniform(size=sample_size)
      g = theano.function([], u2)
      gsample1 = g()
      gsample2 = g()
      assert np.allclose(fsample1, gsample1)
      assert np.allclose(fsample2, gsample2)
  
imports: from __future__ import absolute_import, print_function, division
  import os
  import sys
  import time
  import unittest
  from nose.tools import assert_raises
  import numpy
  from six.moves import xrange
  import theano
  from theano import change_flags, config, tensor
  from theano.sandbox import rng_mrg
  from theano.sandbox.rng_mrg import MRG_RandomStreams
  from theano.tests import unittest_tools
  from theano.tests.unittest_tools import attr
label_desc: Use image node_id 1 for calling a global function with example usage: test_deterministic() without return types