def features_keep_by_property(obj, query):
features_keep = []<EOL>for feature in tqdm(obj['<STR_LIT>']):<EOL><INDENT>if all([match(feature['<STR_LIT>'].get(prop), qry) for (prop, qry) in query.items()]):<EOL><INDENT>features_keep.append(feature)<EOL><DEDENT><DEDENT>obj['<STR_LIT>'] = features_keep<EOL>return obj<EOL>
Filter all features in a collection by retaining only those that
satisfy the provided query.