def METHOD_NAME(tmpdir):
    """``verify_task_schema`` raises if the task doesn't match the schema."""
    path = os.path.join(tmpdir, "schema.json")
    with open(path, "w") as fh:
        fh.write(json.dumps(FAKE_SCHEMA))
    config = {"foo": {"bar": path}}
    client.verify_task_schema(config, {"list-of-strings": ["a"]}, "foo.bar")
    with pytest.raises(TaskVerificationError):
        client.verify_task_schema(config, {"list-of-strings": ["a", "a"]}, "foo.bar")
    with pytest.raises(TaskVerificationError):
        client.verify_task_schema(config, {"list-of-strings": ["a", "a"]}, "nonexistent_path")