code: def cv2_to_base64(image):
      data = cv2.imencode(".jpg", image)[1]
      return base64.b64encode(data.tostring()).decode("utf8")
  
imports: import requests
  import json
  import cv2
  import base64
label_desc: Use image node_id 1 for calling a global function with example usage: cv2_to_base64(image) and returns: base64