class_docstr: Indicate an image for pydeck
  
  Parameters
  ----------
  
  path : str
      Path to image (either remote or local)
class_docstr_tok: ["Indicate","an","image","for","pydeck","Parameters","--","--","--","--","--","path",":","str","Path","to","image","(","either","remote","or","local",")"]
code: def __repr__(self):
      if self.is_local:
          with open(os.path.expanduser(self.path), "rb") as img_file:
              encoded_string = get_encoding(
                  self.path
              ) + base64.b64encode(img_file.read()).decode("utf-8")
              return repr(String(encoded_string, quote_type=""))
      else:
          return self.path
  
file_path: deck.gl/bindings/pydeck/pydeck/types/image.py
imports: import base64
  import os
  import pathlib
  import re
  from pydeck.types import String
  from pydeck.types.base import PydeckType
label_desc: Use image node_id 2 for calling the Image obj's underlying member method code with example usage: obj.__repr__() and returns: self, repr