code: def test_wrong_num_classes_error():
      analyser = output_analysers.ClassificationAnalyser(
          name="a", num_classes=5
      )
      dataset = tf.data.Dataset.from_tensor_slices(
          np.random.rand(10, 3)
      ).batch(32)
  
      with pytest.raises(ValueError) as info:
          for data in dataset:
              analyser.update(data)
          analyser.finalize()
  
      assert "Expect the target data for a to have shape" in str(
          info.value
      )
  
file_path: autokeras/autokeras/analysers/output_analysers_test.py
imports: import numpy
  import pytest
  import tensorflow
  from autokeras import test_utils
  from autokeras.analysers import output_analysers
label_desc: Use image node_id 3 for calling a global function with example usage: test_wrong_num_classes_error() without return types