from typing import Dict
import yaml


def read_config(path: str) -> Dict:
    """Load config based on provided filepath.

    Param
    ---------
    path: str
        Path to provided file.

    Returns
    ---------
    Dict
        configuration file in a dictionary form.
    """
    with open(path, "rb") as confile:
        config = yaml.safe_load(confile)
    return config