code: def test_image_input_adapter_transform_to_dataset():
      x = test_utils.generate_data()
      adapter = input_adapters.ImageAdapter()
      assert isinstance(
          adapter.adapt(x, batch_size=32), tf.data.Dataset
      )
  
file_path: autokeras/autokeras/adapters/input_adapters_test.py
imports: import numpy
  import pandas
  import pytest
  import tensorflow
  from autokeras import test_utils
  from autokeras.adapters import input_adapters
  from autokeras.utils import data_utils
label_desc: Use image node_id 3 for calling a global function with example usage: test_image_input_adapter_transform_to_dataset() without return types