import yaml


def load_yml(path):
    """
    Loads a yml file

    Parameters
    ----------
    path : str
        File path where the yml file is stored.
    Returns
    -------
    d : dict
        Python dict containing the parsed yml file.
    """
    if not isinstance(path, str):
        raise ValueError(
            """
            path parameter must be a string
            """
        )

    with open(path, "r") as f:
        d = yaml.full_load(f)

    return d