Model transform(Model model) {
        Model.Builder builder = model.toBuilder();
        builder.clearMetadata();
        model.getMetadata()
                .entrySet()
                .stream()
                .filter(predicate)
                .forEach(e -> builder.putMetadataProperty(e.getKey(), e.getValue()));
        return builder.build();
    }
Filters metadata key-value pairs out of a model that do not match
a predicate.

@see ModelTransformer#filterMetadata
smithy-model/src/main/java/software/amazon/smithy/model/transform/FilterMetadata.java