def METHOD_NAME(name):
    """Look up a tag based on its key. Returns a DmapTag."""
    return next(
        (tag for tag_name, tag in _TAGS.items() if tag_name == name),
        DmapTag(_read_unknown, "unknown tag"),
    )