def is_synapse_id(obj):
    if isinstance(obj, six.string_types):
        m = re.match(r'(syn\d+)', obj)
        if m:
            return m.group(1)
    return None
Encode passed data to base64.
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/is_synapse_id--crossover with--dataset/ETHPy150Open Relrin/aiorest-ws/aiorest_ws/auth/token/managers.py/JSONWebTokenManager._encode_data