class_docstr: Randomly choose one of the best 24 Sub-policies on ImageNet.
  Example:
  >>> policy = ImageNetPolicy()
  >>> transformed = policy(image)
  Example as a PyTorch Transform:
  >>> transform=transforms.Compose([
  >>>     transforms.Resize(256),
  >>>     ImageNetPolicy(),
  >>>     transforms.ToTensor()])
class_docstr_tok: ["Randomly","choose","one","of","the","best","24","Sub-policies","on","ImageNet",".","Example",":",">",">",">","policy","=","ImageNetPolicy","(",")",">",">",">","transformed","=","policy","(","image",")","Example","as","a","PyTorch","Transform",":",">",">",">","transform=transforms.Compose","(","[",">",">",">","transforms.Resize","(","256",")",",",">",">",">","ImageNetPolicy","(",")",",",">",">",">","transforms.ToTensor","(",")","]",")"]
code: def __init__(self, fillcolor=(128, 128, 128)):
      self.policies = [
          SubPolicy(0.4, "posterize", 8, 0.6, "rotate", 9, fillcolor),
          SubPolicy(
              0.6, "solarize", 5, 0.6, "autocontrast", 5, fillcolor
          ),
          SubPolicy(0.8, "equalize", 8, 0.6, "equalize", 3, fillcolor),
          SubPolicy(
              0.6, "posterize", 7, 0.6, "posterize", 6, fillcolor
          ),
          SubPolicy(0.4, "equalize", 7, 0.2, "solarize", 4, fillcolor),
          SubPolicy(0.4, "equalize", 4, 0.8, "rotate", 8, fillcolor),
          SubPolicy(0.6, "solarize", 3, 0.6, "equalize", 7, fillcolor),
          SubPolicy(0.8, "posterize", 5, 1.0, "equalize", 2, fillcolor),
          SubPolicy(0.2, "rotate", 3, 0.6, "solarize", 8, fillcolor),
          SubPolicy(0.6, "equalize", 8, 0.4, "posterize", 6, fillcolor),
          SubPolicy(0.8, "rotate", 8, 0.4, "color", 0, fillcolor),
          SubPolicy(0.4, "rotate", 9, 0.6, "equalize", 2, fillcolor),
          SubPolicy(0.0, "equalize", 7, 0.8, "equalize", 8, fillcolor),
          SubPolicy(0.6, "invert", 4, 1.0, "equalize", 8, fillcolor),
          SubPolicy(0.6, "color", 4, 1.0, "contrast", 8, fillcolor),
          SubPolicy(0.8, "rotate", 8, 1.0, "color", 2, fillcolor),
          SubPolicy(0.8, "color", 8, 0.8, "solarize", 7, fillcolor),
          SubPolicy(0.4, "sharpness", 7, 0.6, "invert", 8, fillcolor),
          SubPolicy(0.6, "shearX", 5, 1.0, "equalize", 9, fillcolor),
          SubPolicy(0.4, "color", 0, 0.6, "equalize", 3, fillcolor),
          SubPolicy(0.4, "equalize", 7, 0.2, "solarize", 4, fillcolor),
          SubPolicy(
              0.6, "solarize", 5, 0.6, "autocontrast", 5, fillcolor
          ),
          SubPolicy(0.6, "invert", 4, 1.0, "equalize", 8, fillcolor),
          SubPolicy(0.6, "color", 4, 1.0, "contrast", 8, fillcolor),
          SubPolicy(0.8, "equalize", 8, 0.6, "equalize", 3, fillcolor),
      ]
  
imports: import math
  import random
  import numpy
  import torch
  import torch.distributed
  from PIL import Image, ImageEnhance, ImageOps
  from torch.utils.data import Sampler
label_desc: Use image node_id 1 to create a new ImageNetPolicy object from inherited base classes: object with example: obj = ImageNetPolicy(fillcolor)