code: def in_scope(self, scope: str):
          
          old_scope = self.resolution_scope
          self.resolution_scope = urlparse.urljoin(old_scope, scope)
          try:
              yield
          finally:
              self.resolution_scope = old_scope
docs: Context manager to handle current scope.