def uni(s):
    if not isinstance(s, unicode):
        try:
            return s.decode('utf-8')
        except __HOLE__:
            return s.decode('latin-1')
    return s
dataset/ETHPy150Open dossier/dossier.models/dossier/models/features/basic.py/uni