def to_unicode(text, encoding='utf8', errors='strict'):
    if isinstance(text, unicode):
        return text
    return unicode(text, encoding, errors=errors)


# Taken from gensim
Skipped test methods don't cause C{wasSuccessful} to return C{False},
dataset/ETHPy150Open summanlp/textrank/summa/preprocessing/textcleaner.py/to_unicode--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/trial/test/test_tests.py/SkipClassesMixin.test_results