code: def create_pip_plot(libraries, pip_choices):
      if "Pip" not in pip_choices:
          return gr.Plot(visible=False)
      output = retrieve_pip_installs(
          libraries, "Cumulated" in pip_choices
      )
      df = pd.DataFrame(output).melt(id_vars="day")
      plot = px.line(
          df, x="day", y="value", color="variable", title="Pip installs"
      )
      plot.update_layout(
          legend=dict(x=0.5, y=0.99), title_x=0.5, legend_title_text=""
      )
      return gr.Plot(value=plot, visible=True)
  
imports: import gradio
  import pandas
  import plotly.express
  from helpers import *
label_desc: Use image node_id 1 for calling a global function with example usage: create_pip_plot(libraries, pip_choices) and returns: gr, gr