def decode(str_, codec='utf8'):
    if PYTHON3:
        return str_
    else:
        return str_.decode(codec)
decode a string. if str is a python 3 string, do nothing.
dataset/ETHPy150Open serverdensity/sdbot/limbo/utils/__init__.py/decode