code: def __init__(self):
      ImageUtilsBackend.__init__(self)
      if hasattr(Image.Resampling, "HAMMING"):  # version >3.4.0
          self._interpolations_map["hamming"] = Image.Resampling.HAMMING
  
      if hasattr(Image.Resampling, "BOX"):  # version >3.4.0
          self._interpolations_map["box"] = Image.Resampling.BOX
  
      if hasattr(Image.Resampling, "LANCZOS"):  # version >1.1.3
          self._interpolations_map["lanczos"] = Image.Resampling.LANCZOS
  
file_path: nnabla/python/src/nnabla/utils/image_utils/backend_events/pil_backend.py
imports: from __future__ import absolute_import, division
  import numpy
  from PIL import Image
  from nnabla.logger import logger
  from .common import _imread_before, _imread_after, _imsave_before, _imresize_before, _imresize_after
  from .image_utils_backend import ImageUtilsBackend
label_desc: Use image node_id 1 to create a new PilBackend object from inherited base classes: ImageUtilsBackend with example: obj = PilBackend()