code: def test_invalid_shape():
      with pytest.raises(ValueError, match="number of features"):
          test_utils.layer_test(
              Maxout, kwargs={"num_units": 3}, input_shape=(5, 4, 2, 7)
          )
  
file_path: addons/tensorflow_addons/layers/tests/maxout_test.py
imports: import pytest
  import numpy
  from tensorflow_addons.layers.maxout import Maxout
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_invalid_shape() without return types