def METHOD_NAME(self):
    tokenizer = ErnieMTokenizer(SAMPLE_VOCAB, unk_token="<unk>", pad_token="<pad>")
    text = tokenizer.encode("sequence builders")
    text_2 = tokenizer.encode("multi-sequence build")
    encoded_sentence = tokenizer.build_inputs_with_special_tokens(text)
    encoded_pair = tokenizer.build_inputs_with_special_tokens(text, text_2)
    assert encoded_sentence == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id]
    assert encoded_pair == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id] + [
        tokenizer.sep_token_id
    ] + text_2 + [tokenizer.sep_token_id]