import codecs
import yaml


def parse_yaml(file_path: str) -> dict:
    """
    load yaml into memory
    Args:
        file_path:

    Returns: dict with the yaml file content

    """
    with codecs.open(file_path, "r", "utf-8") as file:
        return yaml.load(file, Loader=yaml.FullLoader)