def _verify_model_io(mlmodel, input_dtype, output_dtype, expected_op_list):
        """
        This utility function verifies the model's i/o dtypes and expected ops
        """
        assert_input_dtype(mlmodel, expected_type_str=input_dtype)
        assert_output_dtype(mlmodel, expected_type_str=output_dtype)
        assert_ops_in_mil_program(mlmodel, expected_op_list=expected_op_list)
        verify_prediction(mlmodel)

        This utility function verifies the model's i/o dtypes and expected ops
        
coremltools/converters/mil/frontend/torch/test/test_torch_conversion_api.py