for meta in sample.s_metadata:
            if meta.type_id == metadata_type and meta.value == metadata_value:
                return True