code: def test_structured_data_input_with_illegal_dim():
      analyser = input_analysers.StructuredDataAnalyser(
          column_names=test_utils.COLUMN_NAMES,
          column_types=None,
      )
      dataset = tf.data.Dataset.from_tensor_slices(
          np.random.rand(100, 32, 32)
      ).batch(32)
  
      with pytest.raises(ValueError) as info:
          for data in dataset:
              analyser.update(data)
          analyser.finalize()
  
      assert (
          "Expect the data to StructuredDataInput 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 4 for calling a global function with example usage: test_structured_data_input_with_illegal_dim() without return types