code: def pil_baseline(pil_op):
      def inner(sample, param=None):
          p_sample = Image.fromarray(maybe_squeeze(sample))
          p_out = (
              pil_op(p_sample)
              if param is None
              else pil_op(p_sample, param)
          )
          return maybe_expand(np.array(p_out))
  
      return inner
  
imports: import itertools
  import os
  import numpy
  from PIL import Image, ImageEnhance, ImageOps
  from nose2.tools import params, cartesian_params
  import nvidia.dali.tensors
  from nvidia.dali import fn, pipeline_def
  from nvidia.dali.auto_aug import augmentations
  from nvidia.dali.auto_aug.core._utils import get_translations
  from test_utils import get_dali_extra_path, check_batch
label_desc: Use image node_id 3 for calling a global function with example usage: pil_baseline(pil_op) and returns: inner, maybe_expand