def user_update_tenant(request, user, project, admin=True):
    manager = keystoneclient(request, admin=admin).users
    if VERSIONS.active < 3:
        return manager.update_tenant(user, project)
    else:
        return manager.update(user, project=project)
dataset/ETHPy150Open openstack/horizon/openstack_dashboard/api/keystone.py/user_update_tenant/original