void () { doTestByText(""" keys_and_types = { 'comment': (str, type(None)), 'from_budget': (bool, type(None)), 'to_member': (int, type(None)), 'survey_request': (int, type(None)), } def type_is_valid(test_key, test_value): return isinstance(test_value, keys_and_types[test_key]) """); }