<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getYamlDocument(filePath):
 """ Return a yaml file's contents as a dictionary """

    with open(filePath) as stream:
        doc = yaml.load(stream)
        return doc