def METHOD_NAME(self, tags: List[Tag]) -> List[Tag]:
    valid_tags: List[Tag] = []
    for tag in tags:
        if isinstance(
            tag, (DatasetSizeTags, ReaderModelTags, RetrieverModelTags, DocumentStoreModelTags, BenchmarkType)
        ):
            valid_tags.append(tag)
        elif tag != NoneTag.none:
            # Log invalid tags as errors
            LOGGER.error(f"Tag is not a valid dataset or environment tag: tag={tag}")
    return valid_tags