def getYamlDocument(filePath):
    with open(filePath) as stream:
        doc = yaml.load(stream)
        return doc
Matches the first selected element::
dataset/ETHPy150Open ga4gh/server/scripts/utils.py/getYamlDocument--crossover with--dataset/ETHPy150Open gawel/pyquery/pyquery/cssselectpatch.py/JQueryTranslator.xpath_first_pseudo