dictionary (dict) – The dictionary to rename the key in.
old_key (str) – The old key to rename.
new_key (str) – The new key to rename to.
allow_non_existant (bool, default=False) – Whether to allow the old key to not exist in the dictionary. In this case, the
dictionary is returned unchanged.