code: def invalidate(self, name):
          # type: (str) -> None
          
          with self.__instances_lock:
              try:
                  stored_instance = self.__instances[name]
              except KeyError:
                  raise ValueError(
                      "Unknown component instance '{0}'".format(name)
                  )
              else:
                  # Call back the component during the invalidation
                  stored_instance.invalidate(True)
docs: Invalidates the given component
  
          :param name: Name of the component to invalidate
          :raise ValueError: Invalid component name