def test_invalid_inputs_contains_states_error_out(self, float32_buffer_model_with_two_inputs):
        """
        The checking for the inputs should not contain StateType.
        """
        with pytest.raises(
            ValueError,
            match="'inputs' cannot contain an instance of StateType",
        ):
            prog = ct.convert(
                float32_buffer_model_with_two_inputs,
                inputs=[
                    ct.TensorType(shape=(3,)),
                    ct.StateType(
                        wrapped_type=ct.TensorType(
                            shape=(3,),
                        ),
                        name="state",
                    ),
                ],
                minimum_deployment_target=ct.target.iOS18,
                compute_precision=ct.precision.FLOAT32,
                convert_to="milinternal",
            )

        The checking for the inputs should not contain StateType.
        
coremltools/converters/mil/frontend/torch/test/test_torch_stateful_model.py