code: def obj(self):
          
          if not getattr(self, '_obj', None):
              self._obj = self.get_object()
              if self._obj is None and not self.allow_none:
                  self.return_error(404)
  
          return self._obj
docs: Returns the value of :meth:`ObjectMixin.get_object` and sets a private
          property called _obj.  This property ensures the logic around allow_none
          is enforced across Endpoints using the Object interface.
  
          :raises: :class:`werkzeug.exceptions.BadRequest`
          :returns: The result of :meth:ObjectMixin.get_object`