code: def register_scope(self, name: str, scope_class: Type[Scope]) -> None:
          
          with self._lock:
              if name in self.scopes:
                  raise AlreadyConfigured(f'Scope {name} already registered')
              self.scopes[name] = scope_class()
docs: Register new scopes which should be subclass of `Scope`
  
          :param name: Name of new scopes
          :param scope_class: Class of new scopes