code: def test_from_dataframe() -> None:
      df = pd.DataFrame([{"uid": 1, "k": "v1"}, {"uid": 2, "k": "v2"}])
      xp = hip.Experiment.from_dataframe(df)
      assert len(xp.datapoints) == 2
      xp.validate()
      xp._asdict()
  
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 3 for calling a global function with example usage: test_from_dataframe() without return types