code: def test_wrapper_invalid_layer(self):
      invalid_layer = "This is not a valid Keras layer."
  
      with self.assertRaisesRegex(
          ValueError,
          "Layer .* supplied to Wrapper isn't a supported layer type. "
          "Please ensure wrapped layer is a valid Keras layer.",
      ):
          layers.Wrapper(invalid_layer)
  
file_path: keras/keras/layers/core/wrapper_test.py
imports: import pytest
  from keras import layers
  from keras import ops
  from keras import testing
label_desc: Use image node_id 2 for calling the WrapperTest obj's underlying member method code with example usage: obj.test_wrapper_invalid_layer() without return types