code: def render_fn(state: AppState):
      import json
  
      import hiplot as hip
      import streamlit as st
      from streamlit_autorefresh import st_autorefresh
  
      st.set_page_config(layout="wide")
      st_autorefresh(interval=1000, limit=None, key="refresh")
  
      if not state.data:
          st.write("No data available yet ! Stay tuned")
          return
  
      xp = hip.Experiment.from_iterable(state.data)
      ret_val = xp.to_streamlit(
          ret="selected_uids", key="hip"
      ).display()
      st.markdown("hiplot returned " + json.dumps(ret_val))
  
file_path: pytorch-lightning/examples/app/hpo/hyperplot.py
imports: from lightning.app import LightningFlow
  from lightning.app.frontend import StreamlitFrontend
  from lightning.app.utilities.state import AppState
label_desc: Use image node_id 1 for calling a global function with example usage: render_fn(state) without return types