<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_interface(self, interface):
 """Manually add or overwrite an interface definition from an Interface object. :param interface: an Interface() object """

        if not isinstance(interface, Interface):
            raise TypeError

        self._interfaces[interface.name] = interface