code: def test_as_dataframe():
      """Tests that as_dataframe works without the `tfds.core.DatasetInfo`."""
      ds = tf.data.Dataset.from_tensor_slices(
          {
              "some_key": [1, 2, 3],
              "nested": {
                  "sub1": [1.0, 2.0, 3.0],
              },
          }
      )
      df = as_dataframe.as_dataframe(ds)
      assert isinstance(df, pandas.DataFrame)
      assert df._repr_html_().startswith("<style")
      assert list(df.columns) == ["nested/sub1", "some_key"]
  
file_path: datasets/tensorflow_datasets/core/as_dataframe_test.py
imports: import pandas
  import tensorflow
  import tensorflow_datasets
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import as_dataframe
  from tensorflow_datasets.core import load
label_desc: Use image node_id 2 for calling a global function with example usage: test_as_dataframe() without return types