docs: def get_namespace_by_keyword_pattern(self, keyword: str, pattern: str) -> Optional[Namespace]:
          """Get a namespace with a given keyword and pattern."""
          filt = and_(Namespace.keyword == keyword, Namespace.pattern == pattern)
          return self.session.query(Namespace).filter(filt).one_or_none()