def _get_endpoint(client, **kwargs):
    """Get an endpoint using the provided keystone client."""
    return client.service_catalog.url_for(service_type=kwargs.get(
        'service_type') or 'sip', endpoint_type=kwargs.get('endpoint_type') or
        'publicURL')
