import yaml


def load_config(path: str) -> dict:
    """
    Load a config from a yaml file.

    Args:
        path: The path to the config file.
    
    Returns:
        The loaded config dictionary.
    """
    with open(path, 'r') as f:
        return yaml.load(f, Loader=yaml.FullLoader)