code: def base64_decode_image(a):
      # grab the array, data type, and shape from the JSON-decoded object
      (a, dtype, shape) = json.loads(a)
  
      # if this is Python 3, then we need the extra step of encoding the
      # string as byte object
      if sys.version_info.major == 3:
          a = bytes(a, encoding="utf-8")
  
      # set the correct data type and reshape the matrix into an image
      a = base64_decode_array(a, dtype).reshape(shape)
  
      # return the loaded image
      return a
  
file_path: imutils/imutils/encodings.py
imports: import numpy
  import base64
  import json
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: base64_decode_image(a) and returns: a