def as_bytes(value):
    if (not isinstance(value, bytes)):
        return value.encode('UTF-8')
    return value
def as_bytes(value):
    if (not isinstance(value, bytes)):
        return value.encode('UTF-8')
    return value