import yaml


def load(filePath):

    """
    Parses YAML document using filepath, returns dict.

    Input(s): filePath (str) \n
    Output(s): yamlDict (dict)
    """

    stream   = open(filePath, 'r')
    yamlDict = yaml.safe_load(stream)

    return yamlDict