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: Tuple[int, int, int] = MIDDLE_GRAY
  ) -> None:
      self.policies = [
          SubPolicy(
              ImageOp.POSTERIZE,
              8,
              0.4,
              ImageOp.ROTATE,
              9,
              0.6,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.SOLARIZE,
              5,
              0.6,
              ImageOp.AUTO_CONTRAST,
              5,
              0.6,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.EQUALIZE,
              8,
              0.8,
              ImageOp.EQUALIZE,
              3,
              0.6,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.POSTERIZE,
              7,
              0.6,
              ImageOp.POSTERIZE,
              6,
              0.6,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.EQUALIZE,
              7,
              0.4,
              ImageOp.SOLARIZE,
              4,
              0.2,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.EQUALIZE,
              4,
              0.4,
              ImageOp.ROTATE,
              8,
              0.8,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.SOLARIZE,
              3,
              0.6,
              ImageOp.EQUALIZE,
              7,
              0.6,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.POSTERIZE,
              5,
              0.8,
              ImageOp.EQUALIZE,
              2,
              1.0,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.ROTATE,
              3,
              0.2,
              ImageOp.SOLARIZE,
              8,
              0.6,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.EQUALIZE,
              8,
              0.6,
              ImageOp.POSTERIZE,
              6,
              0.4,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.ROTATE, 8, 0.8, ImageOp.COLOR, 0, 0.4, fillcolor
          ),
          SubPolicy(
              ImageOp.ROTATE,
              9,
              0.4,
              ImageOp.EQUALIZE,
              2,
              0.6,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.EQUALIZE,
              7,
              0.0,
              ImageOp.EQUALIZE,
              8,
              0.8,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.INVERT,
              4,
              0.6,
              ImageOp.EQUALIZE,
              8,
              1.0,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.COLOR, 4, 0.6, ImageOp.CONTRAST, 8, 1.0, fillcolor
          ),
          SubPolicy(
              ImageOp.ROTATE, 8, 0.8, ImageOp.COLOR, 2, 1.0, fillcolor
          ),
          SubPolicy(
              ImageOp.COLOR, 8, 0.8, ImageOp.SOLARIZE, 7, 0.8, fillcolor
          ),
          SubPolicy(
              ImageOp.SHARPNESS,
              7,
              0.4,
              ImageOp.INVERT,
              8,
              0.6,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.SHEAR_X,
              5,
              0.6,
              ImageOp.EQUALIZE,
              9,
              1.0,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.COLOR, 0, 0.4, ImageOp.EQUALIZE, 3, 0.6, fillcolor
          ),
          SubPolicy(
              ImageOp.EQUALIZE,
              7,
              0.4,
              ImageOp.SOLARIZE,
              4,
              0.2,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.SOLARIZE,
              5,
              0.6,
              ImageOp.AUTO_CONTRAST,
              5,
              0.6,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.INVERT,
              4,
              0.6,
              ImageOp.EQUALIZE,
              8,
              1.0,
              fillcolor,
          ),
          SubPolicy(
              ImageOp.COLOR, 4, 0.6, ImageOp.CONTRAST, 8, 1.0, fillcolor
          ),
      ]
  
imports: import random
  from enum import auto, Enum
  from functools import partial
  from typing import Any, Callable, NamedTuple, Sequence, Tuple
  import numpy
  from classy_vision.dataset.transforms import ClassyTransform, register_transform
  from PIL import Image, ImageEnhance, ImageOps
label_desc: Use image node_id 1 to create a new ImagenetAutoAugment object from inherited base classes: ClassyTransform with example: obj = ImagenetAutoAugment(fillcolor)