def METHOD_NAME(result):
    """Convert result to unicode."""
    if not result:
        return result
    if isinstance(result, binary_type):
        return decode(result)
    if isinstance(result, list) or isinstance(result, tuple):
        return list(map(METHOD_NAME, result))
    if isinstance(result, dict):
        for k, v in viewitems(result):
            result[k] = METHOD_NAME(v)
        return result
    return result