def METHOD_NAME(self, metadata_keys_no_repeat, metadata_keys):
    keys = tuple(key for key in metadata_keys if key in metadata_keys_no_repeat)
    assert keys == tuple(unique(keys)), "Non-repeatable keys are set at most only once"