<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_yaml_file(schema: dict, yaml_file: Path):
 """Validates yaml data against the defined schema :param schema: schema in json format :param yaml_file: path to yaml_file :return: """


    with yaml_file.open() as f:
        data = yaml.load(f)

    jsonschema.validate(data, schema)