def METHOD_NAME(self, want, got, optionflags):
    if self.strict:
        return doctest.OutputChecker.METHOD_NAME(self, want, got, optionflags)
    else:
        if want == '':
            return True
        else:
            try:
                long(want) and long(got)  # where the output is an id
                return True
            except ValueError:
                try:
                    if round(float(want), 8) == round(float(got), 8):
                        return True
                    else:
                        return doctest.OutputChecker.METHOD_NAME(self, want, got, optionflags)
                except ValueError:
                    return doctest.OutputChecker.METHOD_NAME(self, want, got, optionflags)