code: def testFloatGPU(self):
      if test.is_gpu_available(cuda_only=True):
          rows = [
              2**x + np.random.randint(0, 16) for x in range(1, 4)
          ]
          cols = [
              2**x + np.random.randint(0, 16) for x in range(1, 4)
          ]
          for row, col in zip(rows, cols):
              logging.info(
                  "Testing softmax float dtype in shape [%d, %d]",
                  row,
                  col,
              )
              data = np.random.rand(row, col)
              self._testAll(data.astype(np.float32))
  
imports: import unittest
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 7 for calling the SoftmaxTest obj's underlying member method code with example usage: obj.testFloatGPU() without return types