<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate_json_schema(data, schema, name="task"):
 """Given data and a jsonschema, let's validate it. This happens for tasks and chain of trust artifacts. Args: data (dict):
 the json to validate. schema (dict):
 the jsonschema to validate against. name (str, optional):
 the name of the json, for exception messages. Defaults to "task". Raises: ScriptWorkerTaskException: on failure """

    try:
        jsonschema.validate(data, schema)
    except jsonschema.exceptions.ValidationError as exc:
        raise ScriptWorkerTaskException(
            "Can't validate {} schema!\n{}".format(name, str(exc)),
            exit_code=STATUSES['malformed-payload']
        )