def get_wml_credentials(token=None, url=None, version='3.0.0'):
    """Returns a credential object to be used for WML connection
    
    Arguments:
    token -- token which should be included in the credentials
             this token has to be a non-expiring token as it is
             used at Streams runtime and no user credentials shall
             be needed resp. stored
             (default: users CPD token from Jupyter environment)
    url -- url of the CPD cluster where WML is running
    version -- version of the CPD cluster where WML is running
               type str, defaults to "3.0.0"
                 
    Call it only in the notebook where the topology is created, not in Python
    code executed at Streams runtime.
    """
    from icpd_core import icpd_util
    if token is None:
        token = icpd_util.icpd_token
    if url is None:
        url = 'https://internal-nginx-svc:12443'
    credentials = {'url': url, 'token': token, 'instance_id': 'wml_local',
        'version': version}
    return credentials
