code: def rng_mrg_overflow(sizes, fct, mode, should_raise_error):
      for size in sizes:
          y = fct(size=size)
          f = theano.function([], y, mode=mode)
          if should_raise_error:
              assert_raises(ValueError, f)
          else:
              f()
  
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 22 for calling a global function with example usage: rng_mrg_overflow(sizes, fct, mode, should_raise_error) without return types