def base64_encode(value):
    'Perform base64 encode.'
    return base64.b64encode(value.encode('utf-8')).decode('utf-8')
Perform base64 encode.
def base64_encode(value):
    
    return base64.b64encode(value.encode('utf-8')).decode('utf-8')