def test_conversion(self):
        """Ensures multiple  token logprobs are converted correctly."""
        token_logprob_dicts = [
            {
                "token": "Hello",
                "logprob": -0.1,
                "top_logprobs": [
                    {"token": "Hello", "logprob": -0.1, "bytes": [1, 2, 3]},
                    {"token": "Hi", "logprob": -1.0, "bytes": [1, 2, 3]},
                ],
            },
            {
                "token": "world",
                "logprob": -0.2,
                "top_logprobs": [
                    {"token": "world", "logprob": -0.2, "bytes": [2, 3, 4]},
                    {"token": "earth", "logprob": -1.2, "bytes": [2, 3, 4]},
                ],
            },
        ]
        expected_result = [
            [
                LogProb(token="Hello", logprob=-0.1, bytes=[1, 2, 3]),
                LogProb(token="Hi", logprob=-1.0, bytes=[1, 2, 3]),
            ],
            [
                LogProb(token="world", logprob=-0.2, bytes=[2, 3, 4]),
                LogProb(token="earth", logprob=-1.2, bytes=[2, 3, 4]),
            ],
        ]
        result = _from_token_logprob_dicts(token_logprob_dicts)
        assert result == expected_result
Ensures multiple  token logprobs are converted correctly.
llama-index-integrations/llms/llama-index-llms-oci-data-science/tests/test_oci_data_science_utils.py