code: def test_overflow_cpu():
      # run with THEANO_FLAGS=mode=FAST_RUN,device=cpu,floatX=float32
      rng = MRG_RandomStreams(np.random.randint(1234))
      fct = rng.uniform
      with change_flags(compute_test_value="off"):
          # should raise error as the size overflows
          sizes = [
              (2**31,),
              (2**32,),
              (
                  2**15,
                  2**16,
              ),
              (2, 2**15, 2**15),
          ]
          rng_mrg_overflow(
              sizes, fct, config.mode, should_raise_error=True
          )
      # should not raise error
      sizes = [(2**5,), (2**5, 2**5), (2**5, 2**5, 2**5)]
      rng_mrg_overflow(
          sizes, fct, config.mode, should_raise_error=False
      )
      # should support int32 sizes
      sizes = [
          (np.int32(2**10),),
          (np.int32(2), np.int32(2**10), np.int32(2**10)),
      ]
      rng_mrg_overflow(
          sizes, fct, config.mode, should_raise_error=False
      )
  
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 23 for calling a global function with example usage: test_overflow_cpu() without return types