code: def test_pd():
      ts = np.array(
          [
              np.random.rand(100, 10),
              np.random.rand(200, 10),
              np.random.rand(20, 10),
          ],
          dtype=object,
      )
      c = np.random.rand(3, 10)
  
      df = pd.DataFrame(c)
      df["ts_data"] = ts
      data = TS_Data.from_df(df)
  
      assert np.all(
          [
              np.array_equal(data.ts_data[i], ts[i])
              for i in range(len(ts))
          ]
      )
      assert np.array_equal(data.context_data, c)
  
imports: import numpy
  import pandas
  from seglearn.datasets import load_watch
  from seglearn.base import TS_Data
label_desc: Use image node_id 3 for calling a global function with example usage: test_pd() without return types