code: def test_clf_head_transform_df_to_dataset():
      adapter = output_adapters.ClassificationAdapter(name="a")
  
      y = adapter.adapt(
          pd.DataFrame(
              test_utils.generate_one_hot_labels(
                  dtype="np", num_classes=10
              )
          ),
          batch_size=32,
      )
  
      assert isinstance(y, tf.data.Dataset)
  
file_path: autokeras/autokeras/adapters/output_adapters_test.py
imports: import numpy
  import pandas
  import pytest
  import tensorflow
  from autokeras import test_utils
  from autokeras.adapters import output_adapters
label_desc: Use image node_id 2 for calling a global function with example usage: test_clf_head_transform_df_to_dataset() without return types