code: def accept(self, path, ext, operator):
      if operator in ["resize", "save"]:
          return "OK"
      else:
          if ext in [
              ".bmp",
              ".dib",
              ".eps",
              ".gif",
              ".icns",
              ".ico",
              ".jpeg",
              ".jpg",
              ".msp",
              ".png",
              ".ppm",
              ".pbm",
              ".pgm",
              ".pnm",
              ".tif",
              ".tiff",
          ]:
              return "OK"
          else:
              return "NG"
  
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 5 for calling the PilBackend obj's underlying member method code with example usage: obj.accept(path, ext, operator) and returns: str, str, str