code: def open_image(
      path, resize=None, resample=1, convert_mode=None
  ):  # Image.ANTIALIAS==1
      from PIL import Image
  
      img = Image.open(path)
      if resize is not None:
          img = img.resize(resize, resample)
      if convert_mode is not None:
          img = img.convert(convert_mode)
      return img
  
file_path: tensorwatch/tensorwatch/image_utils.py
imports: import numpy
  import math
  import time
label_desc: Use image node_id 6 for calling a global function with example usage: open_image(path, resize, resample, convert_mode) and returns: img