import yaml


def read_yaml(file_path):
    """Read a YAML file by the given path.

    Args:
        file_path (str): The absolute path of the YAML file.

    Returns:
        dict: The data spec_reader from given YAML file.

    """
    with open(file_path, "r") as file_object:
        return yaml.safe_load(file_object)