def _check_remove_item(the_list, item):
    if not isinstance(item, basestring):
        return False
    if not item.startswith('~'):
        return False
    actual_item = item[1:]
    if actual_item in the_list:
        del the_list[the_list.index(actual_item)]
    return True
Helper function for merge_lists that implements checking wether an items
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/misc.py/_check_remove_item