def test_fit_to_block_sequence_too_big(self):
        """Truncate the sequence if it is too long."""
        sequence = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
        expected_output = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
        self.assertEqual(truncate_or_pad(sequence, self.block_size, 0), expected_output)
Truncate the sequence if it is too long.
dpkd/transformers/examples/research_projects/bertabs/test_utils_summarization.py