code: def deserialize(data: dict):
      encoded_with_padding = (data + "===").encode("ascii")
      img = base64.b64decode(encoded_with_padding)
      buffer = BytesIO(img)
      return PILImage.open(buffer, mode="r")
  
file_path: pytorch-lightning/src/lightning/app/components/serve/types/image.py
imports: import base64
  from io import BytesIO
  from lightning.app.components.serve.types.type import BaseType
  from lightning.app.utilities.imports import _is_pil_available, _is_torch_available
label_desc: Use image node_id 1 for calling the Image obj's underlying member method code with example usage: obj.deserialize(data) and returns: PILImage