code: def require(name, field, data_type):
      
      if not isinstance(field, data_type):
          msg = '{0} must have {1}, got: {2}'.format(name, data_type, field)
          raise AssertionError(msg)
docs: Require that the named `field` has the right `data_type`