from typing import Dict
from typing import Any
import yaml


def load_config(config_path: str) -> Dict[str, Any]:
    """Load a YAML configuration file given its path."""
    with open(config_path, "r") as fh:
        config_yaml = yaml.safe_load(fh)
    return config_yaml