code: def get_encoding(path: str) -> str:
      extension = pathlib.Path(path).suffix.replace(".", "")
      return f"data:image/{extension};base64,"
  
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 1 for calling a global function with example usage: get_encoding(path) and returns: str, extension, str