def _fake_classification(self) -> List[List[serial_utils.JSON]]:
        """Fake classification response in the form returned by huggingface."""

        # Simulated success outcome with some random scores. Should add up to 1.
        r1 = self.ndt.random.uniform(0.1, 0.9)
        r2 = self.ndt.random.uniform(0.1, 0.9 - r1)
        r3 = 1 - (r1 + r2)

        return [
            [
                {"label": "LABEL_1", "score": r1},
                {"label": "LABEL_2", "score": r2},
                {"label": "LABEL_0", "score": r3},
            ]
        ]
Fake classification response in the form returned by huggingface.
src/feedback/trulens/feedback/dummy/endpoint.py