def verify_yaml(filename):
    try:
        with open(filename) as yamlfile:
            yaml.load(yamlfile.read())
        return True
    except yaml.error.YAMLError:
        return False
Checks that a YAML file is valid YAML
dataset/ETHPy150Open gosquadron/squadron/squadron/autotest.py/verify_yaml