code: def test_from_pandas(self):
      import pandas as pd
  
      df = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})
      ds = DataSet.from_pandas(df)
      print(ds)
      assert ds["x"].content == [1, 2, 3]
      assert ds["y"].content == [4, 5, 6]
  
imports: import os
  import pytest
  import numpy
  from fastNLP.core.dataset import DataSet, FieldArray, Instance, ApplyResultException
  from fastNLP import logger
label_desc: Use image node_id 28 for calling the TestDataSetMethods obj's underlying member method code with example usage: obj.test_from_pandas() without return types