def match_type(value, expected_type):
try:<EOL><INDENT>return isinstance(value, TYPES_MAPPING[expected_type])<EOL><DEDENT>except KeyError:<EOL><INDENT>return False<EOL><DEDENT>
Checks if the given value type matches the
expected type

:param value: the value which's type should be checked
:param str expected_type: the name of the expected value

:returns: if the value has the expected type or not
:rtype: bool