def METHOD_NAME(src_text, tokenizer, max_seq_length):
    """Build token types and paddings, trim if needed, and pad if needed."""
    src_text_ids = tokenizer.tokenize(src_text)
    return build_tokens_types_paddings_from_ids(src_text_ids,
                                                max_seq_length,
                                                tokenizer.cls,
                                                tokenizer.sep,
                                                tokenizer.pad)