code: def pipe():
      jpegs = dali.fn.external_source(dtype=types.UINT8, name="source")
      decoded = dali.fn.decoders.image(jpegs, device="mixed")
      resized = dali.fn.resize(
          decoded,
          size=[256],
          subpixel_scale=False,
          interp_type=types.DALIInterpType.INTERP_LINEAR,
          antialias=True,
          mode="not_smaller",
      )
      normalized = dali.fn.crop_mirror_normalize(
          resized,
          crop_pos_x=0.5,
          crop_pos_y=0.5,
          crop=(224, 224),
          mean=[0.485 * 255, 0.456 * 255, 0.406 * 255],
          std=[0.229 * 255, 0.224 * 255, 0.225 * 255],
      )
      return normalized
  
imports: import os
  import nvidia.dali
  import nvidia.dali.types
label_desc: Use image node_id 2 for calling a global function with example usage: pipe() and returns: normalized