<｜begin▁of▁sentence｜>### Instruction:
Imagine you, as a Network Administrator, have a configuration file, say `network_config.gml`, with a mapping of various devices to the IP addresses they are associated with. Now, in this scenario, it's possible that multiple devices have been assigned to the same IP address due to some cloning processes or network setups. You are looking into a method that would reverse this mapping, creating an associative structure where each unique IP address is linked to a set of devices that shared this IP in the original configuration. How would you craft such an inverted mapping to effectively streamline the management of these IP addresses in your network systems?
### Response:
from networkx.utils import groups
many_to_one = {'a': 1, 'b': 1, 'c': 2, 'd': 3, 'e': 3}
result = groups(many_to_one)
print(result)
<|EOT|>
