def convert (self, insulin_sensitivities):
    assert ['mg/dL', 'mmol/L'] in insulin_sensitivities['units']
    
    if insulin_sensitivities ['units'] != self.units:
    	for sens in insulin_sensitivities['sensitivities']:
    		sens['sensitivity'] = self.to_unit(sens['sensitivity'])
    	
    insulin_sensitivities['user_preferred_units'] = insulin_sensitivities['units']
    insulin_sensitivities['units'] = self.units
    
    return insulin_sensitivities
dataset/ETHPy150Open openaps/openaps/openaps/vendors/units.py/insulin_sensitivities.convert/swapped operands of `in`