from typing import Dict
from typing import Any
import yaml


def read_config(path: str) -> Dict[str, Any]:
    """
    Reads the config dictionary from the yaml file.

    Args:
        path (str): Path to the .yaml file.

    Returns:
        Dict[str, Any]: Configuration.

    """

    with open(path, 'r', encoding='utf-8') as stream:
        config = yaml.load(stream, Loader=yaml.FullLoader)
    return config