import yaml


def read_yaml_data(yaml_file):
    """
    read yaml file.

    Args:
        yaml_file:  yaml file

    Returns:
        dict: yaml content of the yaml file
    """
    with open(yaml_file, 'r', encoding="utf-8") as file:
        file_data = file.read()

    data = yaml.safe_load(file_data)
    return data