code: def load_image(fn, mode=None):
      "Open and load a `PIL.Image` and convert to `mode`"
      im = Image.open(fn)
      im.load()
      im = im._new(im.im)
      return im.convert(mode) if mode else im
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  from PIL import Image
  from matplotlib import patches, patheffects
label_desc: Use image node_id 10 for calling a global function with example usage: load_image(fn, mode) and returns: unknown