import yaml


def _read_yaml(file):
    """
    Opens a yaml file, and returns the content as dict
    :param file: str
    :return: dict
    """
    yaml_file = open(file)
    content = yaml.load(yaml_file, Loader=yaml.FullLoader)
    yaml_file.close()

    return content