def test_platinum_prompt_formatter(self):
    """Tests the adding of PLATINUM tokens."""
    config = casper_formatters.FormatterConfig.from_dict(
        {"presets": ["verbal", "plat"]})
    input_str, output_str = casper_formatters.augment_exemplars(
        _EXAMPLES[0], [_EXAMPLES[1], _EXAMPLES[3]], "top", config)
    expected_input_str = ("input: {} @@ PLATINUM example 1: {} ## output 1: {} "
                          "@@ PLATINUM example 2: {} ## output 2: {}").format(
                              _EXAMPLES[0]["input_str"],
                              _EXAMPLES[1]["input_str"],
                              _EXAMPLES[1]["_serialized"],
                              _EXAMPLES[3]["input_str"],
                              _EXAMPLES[3]["_serialized"],
                          )
    expected_output_str = _EXAMPLES[0]["_serialized"]
    self.assertEqual(input_str, expected_input_str)
    self.assertEqual(output_str, expected_output_str)
Tests the adding of PLATINUM tokens.
language/casper/augment/casper_formatters_test.py