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 testPositive(self):
      n = int(10e3)
      for dt in [dtypes.float16, dtypes.float32, dtypes.float64]:
          with self.cached_session():
              x = random_ops.random_gamma(
                  shape=[n], alpha=0.001, dtype=dt, seed=0
              )
              self.assertEqual(
                  0,
                  math_ops.reduce_sum(
                      math_ops.cast(
                          math_ops.less_equal(x, 0.0),
                          dtype=dtypes.int64,
                      )
                  ).eval(),
              )
  
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 16 for calling the RandomGammaTest obj's underlying member method code with example usage: obj.testPositive() without return types