code: def url_to_image(url, readFlag=cv2.IMREAD_COLOR):
      # download the image, convert it to a NumPy array, and then read
      # it into OpenCV format
      resp = urlopen(url)
      image = np.asarray(bytearray(resp.read()), dtype="uint8")
      image = cv2.imdecode(image, readFlag)
  
      # return the image
      return image
  
file_path: imutils/imutils/convenience.py
imports: import numpy
  import cv2
  import sys
label_desc: Use image node_id 7 for calling a global function with example usage: url_to_image(url, readFlag) and returns: image