def METHOD_NAME(use_pbe_model):
    data = [{"txt": "我是{NOISE}"}]
    symbol_table = {"我": 1, "是": 2, "{NOISE}": 3}
    if use_pbe_model:
        bpe_model = "test/resources/librispeech.train_960_unigram5000.bpemodel"
        sample = next(processor.tokenize(data, symbol_table, bpe_model,
                                         non_lang_syms=["{NOISE}"]))
        assert sample["tokens"] == ["我", "是", "{NOISE}"]
    else:
        sample = next(processor.tokenize(data, symbol_table,
                                         non_lang_syms=["{NOISE}"]))
        assert sample["tokens"] == ["我", "是", "{NOISE}"]