code: def test_validate_num_inputs_error():
      with pytest.raises(ValueError) as info:
          utils.validate_num_inputs([1, 2, 3], 2)
  
      assert "Expected 2 elements in the inputs list" in str(info.value)
  
file_path: autokeras/autokeras/utils/utils_test.py
imports: import numpy
  import pytest
  import tensorflow
  from keras_tuner.engine import hyperparameters
  from autokeras.utils import utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_validate_num_inputs_error() without return types