class_docstr: Representation of image information.
class_docstr_tok: ["Representation","of","image","information","."]
docstr: When image is str, it is a serialized; need to deserialize.
docstr_tok: ["When","image","is","str",",","it","is","a","serialized",";","need","to","deserialize","."]
code: def __init__(
      self,
      image_id: str,
      image_location_id: str,
      image: Union["PIL.Image", str],
  ):
      """
      When image is str, it is a serialized; need to deserialize.
      """
      self._image_id = image_id
      self._image_location_id = image_location_id
      self._image = image
      if isinstance(self._image, str):
          self._image = PIL.Image.open(
              io.BytesIO(base64.b64decode(self._image))
          )
  
imports: import base64
  import io
  from typing import Dict, Union
  import PIL
  import torch
  from parlai.core.image_featurizers import ImageLoader
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser
  from parlai.utils.typing import TShared
label_desc: Use image node_id 1 to create a new ImageInformation object from inherited base classes: object with example: obj = ImageInformation(image_id, image_location_id, image)