def test_get_activation_calibration_stats_excludes_model_outputs(self):
        """
        The activation calibration stats shouldn't include the model's final outputs.
        """
        # Prepare sample data
        sample_data = []
        for _ in range(3):
            input_data = np.random.rand(5, 10, 4, 4)
            sample_data.append({"data_0": input_data})

        # Loading a floating point mlmodel
        mlmodel = self._get_test_mlmodel_conv_concat()

        activation_stats = _get_activation_calibration_stats(mlmodel, sample_data)

        model_spec = mlmodel.get_spec()
        output_count = len(mlmodel.get_spec().description.output)
        for i in range(0, output_count):
            output_name = model_spec.description.output[i].name
            assert output_name not in activation_stats

        The activation calibration stats shouldn't include the model's final outputs.
        
coremltools/test/optimize/coreml/test_passes.py