code: def create_component(cls) -> tp.Optional[tp.Callable[..., tp.Any]]:
      if cls.component is not None:
          return cls.component
      from streamlit import runtime
  
      try:
          import streamlit.components.v1 as components
      except ModuleNotFoundError as e:
          raise RuntimeError(
              f"""Your streamlit version ({st.__version__}) is too old and does not support components.
  Please update streamlit with `pip install -U streamlit`"""
          ) from e
      assert runtime.exists()
  
      built_path = (
          Path(__file__).parent
          / "static"
          / "built"
          / "streamlit_component"
      ).resolve()
      assert (
          built_path / "index.html"
      ).is_file(), f"""HiPlot component does not appear to exist in {built_path}
  If you did not install hiplot using official channels (pip, conda...), maybe you forgot to build javascript files?
  See https://facebookresearch.github.io/hiplot/contributing.html#building-javascript-bundle
  """
      cls.component = components.declare_component(
          "hiplot", path=str(built_path)
      )
      return cls.component
  
file_path: hiplot/hiplot/streamlit_helpers.py
imports: import typing
  import json
  import uuid
  import warnings
  from pathlib import Path
  from .experiment import Experiment, _is_running_ipython
label_desc: Use image node_id 2 for calling the _StreamlitHelpers obj's underlying member method code with example usage: obj.create_component(cls) and returns: cls, cls