class_docstr: Encode an image with a supported file encoding.
class_docstr_tok: ["Encode","an","image","with","a","supported","file","encoding","."]
code: def __init__(self, opts: argparse.Namespace, *args, **kwargs) -> None:
      super().__init__(opts=opts, *args, **kwargs)
      self.file_encoding = getattr(
          opts, "image_augmentation.pil_save.file_encoding"
      )
      self.quality = getattr(
          opts, "image_augmentation.pil_save.quality"
      )
      self.opts = opts
  
imports: import argparse
  import io
  from typing import Dict, Union
  import numpy
  import torch
  from PIL import Image
  from data.transforms import TRANSFORMATIONS_REGISTRY, BaseTransformation
label_desc: Use image node_id 1 to create a new PILSave object from inherited base classes: BaseTransformation with example: obj = PILSave(opts)