import pathlib
from typing import Dict
from typing import Any
import yaml


def load_config(config_filepath: pathlib.Path) -> Dict[str, Any]:
    """Load a config YAML file and returns content.

    Args:
        config_filepath: Path to config file

    Returns:
        Content of config file
    """
    with config_filepath.open(mode="r") as config_file:
        content = yaml.safe_load(config_file)
        return content