def restore(ns, target, action, recursively):
    uf_name = get_uf_name(ns, target)
    service = get_service(ns)

    try:
        (rval, params, errorstr) = service.SyncRestoreLabels(
            Target=uf_name,
            Action=action,
            Recursively=recursively,
        )
    except LMIExceptions.CIMError as err:
        msg = 'Failed to restore default SELinux security context'
        if err[1]:
            if err[0] == 4:
                msg += err[1][err[1].index(':'):]
            else:
                msg += ": " + err[1]
        raise LmiFailed(msg)
    else:
        LOG().info('SELinux security contexts on "%s" restored.', target)
Test to get true annotation terms
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/selinux/lmi/scripts/selinux/__init__.py/restore--crossover with--dataset/ETHPy150Open moonso/genmod/tests/utils/test_check_vep_annotation.py/test_get_annotation