code: def load_img(path, grayscale=False, target_size=None):
      """Utility function to load an image from disk.
  
      Args:
        path: The image file path.
        grayscale: True to convert to grayscale image (Default value = False)
        target_size: (w, h) to resize. (Default value = None)
  
      Returns:
          The loaded numpy image.
      """
      img = io.imread(path, grayscale)
      if target_size:
          img = transform.resize(
              img, target_size, preserve_range=True
          ).astype("uint8")
      return img
  
imports: from __future__ import absolute_import
  from __future__ import division
  import os
  import tempfile
  import math
  import json
  import six
  import numpy
  import matplotlib.font_manager
  from skimage import io, transform
  from keras import backend
  from keras.models import load_model
  import logging
label_desc: Use image node_id 13 for calling a global function with example usage: load_img(path, grayscale, target_size) and returns: img