docstr: Verifying the output with expected results for gamma correction for float32 images.
docstr_tok: ["Verifying","the","output","with","expected","results","for","gamma","correction","for","float32","images","."]
code: def _test_adjust_gamma_float32(self, gamma):
      """Verifying the output with expected results for gamma correction for float32 images."""
      with self.cached_session():
          x_np = np.random.uniform(0, 1.0, (8, 8))
          x = _get_weak_tensor(x_np, shape=x_np.shape)
          y = image_ops.adjust_gamma(x, gamma=gamma)
          y_tf = self.evaluate(y)
  
          self.assertIsInstance(y, WeakTensor)
          y_np = np.clip(np.power(x_np, gamma), 0, 1.0)
  
          self.assertAllClose(y_tf, y_np, 1e-6)
  
imports: import numpy
  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.weak_tensor import WeakTensor
  from tensorflow.python.ops import image_ops
  from tensorflow.python.ops import weak_tensor_ops
  from tensorflow.python.ops import weak_tensor_test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the AdjustGamma obj's underlying member method code with example usage: obj._test_adjust_gamma_float32(gamma) without return types