code: def wrap(self, value):
          ''' Validate ``value`` and then use the document's class to wrap the
              value'''
          self.validate_wrap(value)
          return self.type.wrap(valuef wrap(self, value):
          ''' Validate ``value`` and then use the document's class to wrap the
              value'''
          self.validate_wrap(value)
          return self.type.wrap(value)
docs: Validate ``value`` and then use the document's class to wrap the
              value