import yaml


def load_yaml_file(file_path):
    """
    Loads a yaml file and returns a dictionary with the contents.

    Args:
        file_path (str):
            Path to the yaml file

    Returns:
        yaml_dict:
            Dictionary with the contents of the yaml file
    """
    with open(file_path, "r") as stream:
        yaml_dict = yaml.safe_load(stream)
        return yaml_dict