def has_correct_encoding(text, codec):
    try:
        unicode(text, codec)
    except __HOLE__:
        return False
    else:
        return True
dataset/ETHPy150Open francelabs/datafari/windows/python/Tools/Scripts/findnocoding.py/has_correct_encoding