def _check_type(self, value):
if not isinstance(value, self.match_type):<EOL><INDENT>raise TypeError('<STR_LIT>' + str(type(value)) + '<STR_LIT>'<EOL>'<STR_LIT>' + str(self.match_type))<EOL><DEDENT>else:<EOL><INDENT>return value<EOL><DEDENT>
Checks that *value* matches the type of this *Searcher*.

        Checks that *value* matches the type of this *Searcher*, returning the
        value if it does and raising a `TypeError` if it does not.

        :return: *value* if type of *value* matches type of this *Searcher*.
        :raises TypeError: if type of *value* does not match the type of this
            *Searcher*