code: def test_image_input_with_illegal_dim():
      analyser = input_analysers.ImageAnalyser()
      dataset = tf.data.Dataset.from_tensor_slices(
          np.random.rand(100, 32)
      ).batch(32)
  
      with pytest.raises(ValueError) as info:
          for data in dataset:
              analyser.update(data)
          analyser.finalize()
  
      assert "Expect the data to ImageInput to have shape" in str(
          info.value
      )
  
file_path: autokeras/autokeras/analysers/input_analysers_test.py
imports: import copy
  import numpy
  import pandas
  import pytest
  import tensorflow
  from autokeras import test_utils
  from autokeras.analysers import input_analysers
label_desc: Use image node_id 7 for calling a global function with example usage: test_image_input_with_illegal_dim() without return types