def _validated(self, value):
        """Format the value or raise a :exc:`ValidationError` if an error occurs."""
        try:
            return self._format_num(value)
        except (TypeError, __HOLE__) as err:
            self.fail('invalid')
dataset/ETHPy150Open marshmallow-code/marshmallow/marshmallow/fields.py/Number._validated