code: def dispose(self):
          
          for registration in self._registrations.values():
              registration.dispose()
  
          self._registrations = {}
docs: Disposes every performed registration; the container can then be used again