def check_mem(self):
        mem = self.get_mem()
        if mem is not None:
            if not isinstance(mem, (float, int)):
                return False, 'The specified mem value "%s" is not a valid float or int.' % mem
        return True, ''
dataset/ETHPy150Open Yelp/paasta/paasta_tools/utils.py/InstanceConfig.check_mem/original