code: def get_color(importance_value):
      """
      Converts importance value to a color gradient: red for negative, green for positive.
      """
      if importance_value < 0:
          color = f"#ff{int(255 + 255 * importance_value):02x}{int(255 + 255 * importance_value):02x}"
      else:
          color = f"#{int(255 - 255 * importance_value):02x}ff{int(255 - 255 * importance_value):02x}"
      return color
  
file_path: interpret-text/python/interpret_text/generative/model_lib/streamlit_frontend.py
imports: import streamlit
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: get_color(importance_value) and returns: color