def __load_yml(self, stream):
        """Load yml stream into a dict object """

        try:
            return yaml.load(stream, Loader=yaml.SafeLoader)
        except ValueError as e:
            cause = "invalid yml format. %s" % str(e)
            raise InvalidFormatError(cause=cause)
Load yml stream into a dict object