def METHOD_NAME(self):
    kwargs = {"strides": 2, "dilation_rate": 2}
    with self.assertRaisesRegex(
        ValueError, r"""`strides > 1` not supported in conjunction"""
    ):
        keras.layers.DepthwiseConv1D(kernel_size=2, **kwargs)