code: def base64_to_img(image: Union[str, List[str]]):
      """
      Returns PIL Image objects of base64 encoded images
      """
      is_list = False
  
      if type(image) == list:
          is_list = True
  
      if not is_list:
          image = [image]
  
      images = []
      for img in image:
          if not isinstance(img, Image.Image):
              # Not bytes
              if type(img) == str:
                  img = img.split(",")[-1]
  
              img = BytesIO(base64.b64decode(img))
              img = Image.open(img)
          images.append(img)
  
      if not is_list:
          images = images[0]
  
      return images
  
file_path: backprop/backprop/utils/helpers.py
imports: from PIL import Image
  from io import BytesIO
  from typing import Union, List
  import base64
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: base64_to_img(image) and returns: images