code: def seed_rng(pseed=None):
      """
      Seeds numpy's random number generator with the value returned by fetch_seed.
      Usage: unittest_tools.seed_rng()
      """
  
      seed = fetch_seed(pseed)
      if pseed and pseed != seed:
          print(
              "Warning: using seed given by config.unittests.rseed=%i"
              "instead of seed %i given as parameter" % (seed, pseed),
              file=sys.stderr,
          )
      np.random.seed(seed)
      return seed
  
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 3 for calling a global function with example usage: seed_rng(pseed) and returns: seed