code: def testStatelessRandom(self):
      # test dtype default float32 random
      result = stateless_random_ops.stateless_random_uniform(
          [10],
          seed=constant_op.constant([0, 0], dtype=dtypes.int64),
          minval=0.0,
          maxval=10.0,
      )
      self.assertEqual([10], result.shape)
  
      # test dtype default int32 minval maxval are both None
      result = stateless_random_ops.stateless_random_uniform(
          [10],
          seed=constant_op.constant([1, 2], dtype=dtypes.int64),
          dtype=dtypes.int32,
          minval=None,
          maxval=None,
      )
      self.assertEqual([10], result.shape)
  
      # test maxval is None or not given
      result = stateless_random_ops.stateless_random_uniform(
          [10],
          seed=constant_op.constant([1, 2], dtype=dtypes.int64),
          maxval=12,
          dtype=dtypes.int32,
      )
      self.assertEqual([10], result.shape)
      self.assertAllInRange(result, 0, 12)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.dtensor.python import api
  from tensorflow.dtensor.python import d_random
  from tensorflow.dtensor.python import layout
  from tensorflow.dtensor.python import numpy_util
  from tensorflow.dtensor.python.tests import test_util
  from tensorflow.python.eager.polymorphic_function import polymorphic_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the APITest obj's underlying member method code with example usage: obj.testStatelessRandom() without return types