code: def test_to_streamlit() -> None:
      exp = hip.fetchers.load_demo("demo")
      with patch_streamlit():
          exp_st = exp.to_streamlit(key="k")
          ret = exp_st.display()
          assert ret is None
  
          exp_st = exp.to_streamlit(key="k2", ret="selected_uids")
          selected_uids = exp_st.display()
          assert selected_uids
          assert isinstance(selected_uids[0], str)
  
          exp_st = exp.to_streamlit(
              key="k3", ret=["selected_uids", "filtered_uids"]
          )
          selected_uids, filtered_uids = exp_st.display()
          assert selected_uids
          assert filtered_uids
          assert isinstance(selected_uids[0], str)
          assert isinstance(filtered_uids[0], str)
  
imports: import tempfile
  import shutil
  from contextlib import contextmanager
  from unittest.mock import patch
  import typing
  import pytest
  import pandas
  import optuna
  import hiplot
label_desc: Use image node_id 16 for calling a global function with example usage: test_to_streamlit() without return types