code: def test_as_supervised():
      df = _as_df("mnist", as_supervised=True)
      assert isinstance(df, pandas.DataFrame)
      assert isinstance(df._repr_html_(), str)
      assert list(df.columns) == ["image", "label"]
  
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 4 for calling a global function with example usage: test_as_supervised() without return types