code: def _as_df(ds_name: str, **kwargs) -> pandas.DataFrame:
      """Loads the dataset as `pandas.DataFrame`."""
      with testing.mock_data(num_examples=3):
          ds, ds_info = load.load(
              ds_name, split="train", with_info=True, **kwargs
          )
      df = as_dataframe.as_dataframe(ds, ds_info)
      return df
  
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 1 for calling a global function with example usage: _as_df(ds_name) and returns: df