@shared_task(name='nodeconductor.structure.remove_user')
def remove_user(user_data, service_project_link_str):
    user = deserialize_user(user_data)
    try:
        service_project_link = next(models.ServiceProjectLink.from_string(service_project_link_str))
    except __HOLE__:
        logger.warning('Missing service project link %s.', service_project_link_str)
        return True

    try:
        backend = service_project_link.get_backend()
        backend.remove_user(user, service_project_link)
        logger.info(
            'User %s has been removed from service project link %s.',
            user.uuid, service_project_link_str)
    except ServiceBackendNotImplemented:
        pass
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/structure/tasks.py/remove_user