def _matches(self, item):
        self.error = None
        try:
            result = self.callback(item)
            # Returning an expectation assumes it's correct (no failure raised)
            from .expectation import Expectation
            return isinstance(result, Expectation) or bool(result)
        except __HOLE__:
            # Just forward assertion failures
            raise
        except Exception as ex:
            self.error = str(ex)
            return False
dataset/ETHPy150Open drslump/pyshould/pyshould/matchers.py/Callback._matches