def METHOD_NAME(stream, tag_mappings):
    result = []
    while True:
        tag = read_tag(stream, tag_mappings)
        if tag is None:
            break
        result.append(tag)
    return result