code: def bind(self, key, factory):
          
          if key in self.factories:
              raise AlreadyBoundError(key)
          else:
              self.factories[key] = factory
docs: Bind a factory to a key.
  
          :raises AlreadyBoundError: if the key is alrady bound