public Model filterMetadata(Model model, BiPredicate<String, Node> predicate) {
        return new FilterMetadata(predicate).transform(model);
    }
Filters out metadata key-value pairs from a model that do not match
a predicate.

@param model Model to transform.
@param predicate A predicate that accepts a metadata key-value pair.
 If the predicate returns true, then the metadata key-value pair is
 kept. Otherwise, it is removed.
@return Returns the transformed model.base.
smithy-model/src/main/java/software/amazon/smithy/model/transform/ModelTransformer.java