code: def open_link(url: str, new_tab: bool = True) -> None:
      """Hack to open a new web page with a streamlit button."""
      from bokeh.models.widgets import Div
  
      # From: https://discuss.streamlit.io/t/how-to-link-a-button-to-a-webpage/1661/3
      if new_tab:
          js = f"window.open('{url}')"  # New tab or window
      else:
          js = f"window.location.href = '{url}'"  # Current tab
      html = '<img src onerror="{}">'.format(js)
      div = Div(text=html)
      st.bokeh_chart(div)
  
label_desc: Use image node_id 1 for calling a global function with example usage: open_link(url, new_tab) without return types