<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add(self, modpath, name, origin):
 """Adds a possible origin for the given name in the given module."""

        self.map.setdefault(modpath, {}).setdefault(name, set()).add(origin)