class_docstr: Randomly apply solarization transform to an image.
  This was used in BYOL - https://arxiv.org/abs/2006.07733
docstr: Instantiates ImgPilRandomSolarize from configuration.
  
  Args:
      config (Dict): arguments for for the transform
  
  Returns:
      ImgPilRandomSolarize instance.
docstr_tok: ["Instantiates","ImgPilRandomSolarize","from","configuration",".","Args",":","config","(","Dict",")",":","arguments","for","for","the","transform","Returns",":","ImgPilRandomSolarize","instance","."]
code: def from_config(
      cls, config: Dict[str, Any]
  ) -> "ImgPilRandomSolarize":
      """
      Instantiates ImgPilRandomSolarize from configuration.
  
      Args:
          config (Dict): arguments for for the transform
  
      Returns:
          ImgPilRandomSolarize instance.
      """
      prob = config.get("p", 0.66)
      assert isinstance(
          prob, float
      ), f"p must be a float value. Found {type(prob)}"
      assert prob >= 0 and prob <= 1
      return cls(prob=prob)
  
file_path: vissl/vissl/data/ssl_transforms/img_pil_random_solarize.py
imports: import logging
  from typing import Any, Dict
  import torchvision.transforms
  from classy_vision.dataset.transforms import register_transform
  from classy_vision.dataset.transforms.classy_transform import ClassyTransform
  from vissl.data.ssl_transforms.pil_photometric_transforms_lib import RandomSolarizeTransform
label_desc: Use image node_id 3 for calling the ImgPilRandomSolarize obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls