code: def add_interface(self, interface):
          
          if not isinstance(interface, Interface):
              raise TypeError
  
          self._interfaces[interface.name] = interface
docs: Manually add or overwrite an interface definition from an Interface object.
  
          :param interface: an Interface() object