def _maybe_decode(maybe_bytes):
    try:
        return maybe_bytes.decode('utf-8')
    except (AttributeError, __HOLE__):
        return maybe_bytes
dataset/ETHPy150Open IvanMalison/okcupyd/okcupyd_testing/util.py/_maybe_decode