def sample(self) -> Dict:
    res = {}
    for (key, val) in self.search_space.items():
        try:
            res[key] = self.parse(val)
        except (TypeError, ValueError) as error:
            logger.error(f'Could not parse key {key} with value {val}. {error}')
    return res
def sample(self) -> Dict:
    res = {}
    for (key, val) in self.search_space.items():
        try:
            res[key] = self.parse(val)
        except (TypeError, ValueError) as error:
            logger.error(f'Could not parse key {key} with value {val}. {error}')
    return res