code: def test_correct_results(self, gamma):
      adjuster = RandAdjustContrastd("img", prob=1.0, gamma=gamma)
      for p in TEST_NDARRAYS:
          result = adjuster({"img": p(self.imt)})
          epsilon = 1e-7
          img_min = self.imt.min()
          img_range = self.imt.max() - img_min
          expected = (
              np.power(
                  ((self.imt - img_min) / float(img_range + epsilon)),
                  adjuster.adjuster.gamma_value,
              )
              * img_range
              + img_min
          )
          assert_allclose(
              result["img"], expected, rtol=1e-05, type_test="tensor"
          )
  
file_path: MONAI/tests/test_rand_adjust_contrastd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.transforms import RandAdjustContrastd
  from tests.utils import TEST_NDARRAYS, NumpyImageTestCase2D, assert_allclose
label_desc: Use image node_id 1 for calling the TestRandAdjustContrastd obj's underlying member method code with example usage: obj.test_correct_results(gamma) without return types