code: def fetch_by_name(self, name):
          
          service = self.name_index.get(name)
          if not service:
              raise ServiceNotFound
          return Service(service)
docs: Get service for given ``name`` from memory storage.