A class of functions whose sublevel sets are absolute retracts