code: def to_hex(color):
      return "#%02x%02x%02x" % tuple(color) if color else "#000000"
  
imports: import random
  from typing import Any, Dict
label_desc: Use image node_id 2 for calling a global function with example usage: to_hex(color) and returns: unknown