code: def embedding_to_b64(data):
      d = json.dumps(data, cls=EmbeddingEncoder)
      return base64.b64encode(d.encode())
  
imports: import base64
  import json
  import warnings
  import numpy
  import zlib
  from PIL import Image, ImageDraw
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: embedding_to_b64(data) and returns: base64