
        with self.assertRaises(ValueError):
            ResNetRS50(**invalid_parameters)

    def test_pretrained_model_can_be_created_with_different_input_shape(self):
        input_shape = (160, 160, 3)
        parameters = {
            "weights": "imagenet",
            "include_top": True,
            "input_shape": input_shape,
        }
        mock_input = self.rng.uniform((1, *input_shape))

        model = ResNetRS50(**parameters)
        output = model(mock_input, training=False)