def METHOD_NAME(wrd):
    yield wrd
    tokens_list = tokenizer.encode_as_ids(wrd)
    tokens_bos = torch.LongTensor([hparams["bos_index"]] + (tokens_list))
    yield tokens_bos
    tokens_eos = torch.LongTensor(tokens_list + [hparams["eos_index"]])
    yield tokens_eos