code: def _load_image(path):
      img = Image.open(path)
      # In an RGBA image, if the smallest value in the alpha channel is 255, all
      # values in it must be 255, meaning that the image is opaque. If so,
      # discard the alpha channel so that it may compare equal to an RGB image.
      if img.mode != "RGBA" or img.getextrema()[3][0] == 255:
          img = img.convert("RGB")
      return np.asarray(img)
  
imports: import atexit
  import functools
  import hashlib
  import logging
  import os
  from pathlib import Path
  import shutil
  import subprocess
  import sys
  from tempfile import TemporaryDirectory, TemporaryFile
  import weakref
  import numpy
  from PIL import Image
  import matplotlib
  from matplotlib import cbook
  from matplotlib.testing.exceptions import ImageComparisonFailure
label_desc: Use image node_id 12 for calling a global function with example usage: _load_image(path) and returns: np