def value_convert(self, value, value_type):
CONVERSION_OPTIONS = {<EOL>"<STR_LIT:str>": str,<EOL>"<STR_LIT:int>": int,<EOL>"<STR_LIT:float>": float,<EOL>"<STR_LIT:bool>": (lambda val: val.lower() in ("<STR_LIT:true>", "<STR_LIT:1>")),<EOL>"<STR_LIT>": self.make_value,<EOL>}<EOL>try:<EOL><INDENT>return CONVERSION_OPTIONS[value_type](value)<EOL><DEDENT>except (TypeError, ValueError):<EOL><INDENT>self.notify_user("<STR_LIT>")<EOL>return None<EOL><DEDENT>
convert string into type used by `config functions`