def METHOD_NAME(y_file_name):
    with open(y_file_name, "r") as stream:
        try:
            dict_from_yaml = yaml.safe_load(stream)
            return dict_from_yaml
        except yaml.YAMLError as exc:
            logger.warning(exc)