code: def test_random_state_transfer(self):
      # Test that random state can be transferred from one theano graph to another.
  
      class Graph:
          def __init__(self, seed=123):
              self.rng = RandomStreams(seed)
              self.y = self.rng.uniform(size=(1,))
  
      g1 = Graph(seed=123)
      f1 = function([], g1.y)
      g2 = Graph(seed=987)
      f2 = function([], g2.y)
  
      for su1, su2 in zip(g1.rng.state_updates, g2.rng.state_updates):
          su2[0].set_value(su1[0].get_value())
  
      np.testing.assert_array_almost_equal(f1(), f2(), decimal=6)
  
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 35 for calling the T_SharedRandomStreams obj's underlying member method code with example usage: obj.test_random_state_transfer() without return types