code: def patch_streamlit() -> tp.Iterator[None]:
      with patch(
          "hiplot.streamlit_helpers._StreamlitHelpers.is_running_within_streamlit",
          lambda: True,
      ):
          with patch(
              "hiplot.streamlit_helpers._StreamlitHelpers.create_component",
              lambda: (lambda experiment, ret, key: None),
          ):
              with patch(
                  "hiplot.streamlit_helpers._StreamlitHelpers.component"
              ):
                  yield
  
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 15 for calling a global function with example usage: patch_streamlit() without return types