tfma.unique_key

Returns a unique key given a list of current keys.

If the key exists in current_keys then a new key with _1, _2, ..., etc appended will be returned, otherwise the key will be returned as passed.

key desired key name.
current_keys List of current key names.
update_keys True to append the new key to current_keys.