import yaml


def read_yaml_file(file_path):
    """Parses yaml.

    :param file_path: path to yaml file as a string
    :returns: deserialized file
    """

    with open(file_path, 'r') as stream:
        data = yaml.safe_load(stream) or {}
    return data