class_docstr: SolarizeAdd images. For each pixel in the image that is less than 128,
  add an additional amount to it decided by the magnitude.
  
  Required Keys:
  
  - img
  
  Modified Keys:
  
  - img
  
  Args:
      prob (float): The probability for performing SolarizeAdd
          transformation. Defaults to 1.0.
      level (int, optional): Should be in range [0,_MAX_LEVEL].
          If level is None, it will generate from [0, _MAX_LEVEL] randomly.
          Defaults to None.
      min_mag (float): The minimum magnitude for SolarizeAdd transformation.
          Defaults to 0.0.
      max_mag (float): The maximum magnitude for SolarizeAdd transformation.
          Defaults to 110.0.
docstr: SolarizeAdd the image.
docstr_tok: ["SolarizeAdd","the","image","."]
code: def _transform_img(self, results: dict, mag: float) -> None:
      """SolarizeAdd the image."""
      img = results["img"]
      img_solarized = np.where(
          img < 128, np.minimum(img + mag, 255), img
      )
      results["img"] = img_solarized.astype(img.dtype)
  
imports: import math
  from typing import Optional
  import mmcv
  import numpy
  from mmcv.transforms import BaseTransform
  from mmcv.transforms.utils import cache_randomness
  from mmdet.registry import TRANSFORMS
  from .augment_wrappers import _MAX_LEVEL, level_to_mag
label_desc: Use image node_id 2 for calling the SolarizeAdd obj's underlying member method code with example usage: obj._transform_img(results, mag) without return types