Python: How to find a list of all keys that contain equal values : I want to find a list (of lists) of all keys in a dictionary that contain values equal to other elements.

For example:

```
dict_with_dups = {
    "a": 1,
    "b": 1,
    "c": 1,
    "d": 2,
    "e": 3,
    "f": 3,
    "g": 4,
}

keys_with_same = locate_same_keys(dict_with_dups)

for key_list in keys_with_same:
    print(f"{key_list}")
```
The above should print this:
```
['a', 'b', 'c']
['e', 'f']
```
How do I most efficiently write the function `locate_same_keys`?