from typing import Dict
from typing import Any
import yaml


def read_yaml(yaml_filepath: str) -> Dict[Any, Any]:
    """
    Function to load in a YAML file into a Python dictionary.
    
    Parameters
    ----------
    yaml_filepath : str
        Path to the YAML file
    
    Returns
    -------
    Dict[Any, Any]
        Dictionary based on the YAML contents
    """
    with open(yaml_filepath) as read_file:
        yaml_data = yaml.load(read_file, Loader=yaml.Loader)
    return yaml_data