code: def validate(cls, schema, obj):
          
          if not isinstance(schema, Schema):
              raise ValueError(
                  "schema value {0!r} is not a Schema"
                  " object".format(schema))
          self = cls()
          self.validate_toplevel(schema, obj)
          return True
docs: Validate specified JSON object obj with specified schema.
  
          :param schema:
              Schema to validate against
          :type schema:
              :class:`json_schema_validator.schema.Schema`
          :param obj:
              JSON object to validate
          :rtype:
              bool
          :returns:
              True on success
          :raises `json_schema_validator.errors.ValidationError`:
              if the object does not match schema.
          :raises `json_schema_validator.errors.SchemaError`:
              if the schema itself is wrong.