code: def switch_color(color_style):
      if color_style == "light":
          is_light = True
      elif color_style == "dark":
          is_light = False
      back_color_ = random_color(is_light)  # Randomly generate colors
      back_color = RGB_to_Hex(back_color_)  # Convert to hexadecimal
  
      # Draw color pictures.
      w, h = 50, 50
      img = np.zeros((h, w, 3), np.uint8)
      cv2.rectangle(img, (0, 0), (w, h), back_color_, thickness=-1)
  
      return back_color, back_color, img
  
imports: import gradio
  import cv2
  import numpy
  import random
label_desc: Use image node_id 3 for calling a global function with example usage: switch_color(color_style) and returns: back_color,  back_color,  img