class_docstr: Solarize images (Invert all pixels above a threshold value of
  magnitude.).
  
  Required Keys:
  
  - img
  
  Modified Keys:
  
  - img
  
  Args:
      prob (float): The probability for performing Solarize 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 Solarize transformation.
          Defaults to 0.0.
      max_mag (float): The maximum magnitude for Solarize transformation.
          Defaults to 256.0.
docstr: Invert all pixel values above magnitude.
docstr_tok: ["Invert","all","pixel","values","above","magnitude","."]
code: def _transform_img(self, results: dict, mag: float) -> None:
      """Invert all pixel values above magnitude."""
      img = results["img"]
      results["img"] = mmcv.solarize(img, mag).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 Solarize obj's underlying member method code with example usage: obj._transform_img(results, mag) without return types