code: def RGB_to_Hex(rgb):
      color = "#"
      for i in rgb:
          num = int(i)
          color += str(hex(num))[-2:].replace("x", "0").upper()
      return color
  
imports: import gradio
  import cv2
  import numpy
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: RGB_to_Hex(rgb) and returns: color