code: def add_components(self, components):
          
          if components:
              for component in components:
                  self._components[component["name"]] = (
                      component["factory"],
                      component.get("properties", {}),
                  )
docs: Adds a list of components to instantiate
  
          :param components: The description of components
          :raise KeyError: Missing component configuration