class_docstr: This is a medium test due to the moments computation taking some time.
class_docstr_tok: ["This","is","a","medium","test","due","to","the","moments","computation","taking","some","time","."]
code: def testSizeTooLarge(self):
      # Grappler asserts on size overflow, so this error is only caught when
      # running eagerly.
      if context.executing_eagerly():
          with self.assertRaisesRegex(
              (ValueError, errors.InvalidArgumentError), "overflow"
          ):
              rate = constant_op.constant(1.0, shape=(4, 4, 4, 4, 4))
              self.evaluate(
                  random_ops.random_gamma(
                      shape=[46902, 51188, 34063, 59195], alpha=rate
                  )
              )
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.kernel_tests.random import util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 17 for calling the RandomGammaTest obj's underlying member method code with example usage: obj.testSizeTooLarge() without return types