code: def validate(raw_schema, target=None, **kwargs):
      
      schema = schema_validator(raw_schema, **kwargs)
      if target is not None:
          validate_object(target, schema=schema, **kwargs)
docs: Given the python representation of a JSONschema as defined in the swagger
      spec, validate that the schema complies to spec.  If `target` is provided,
      that target will be validated against the provided schema.