code: def generate(self, name: str, **kwargs: Dict[str, str]) -> str:
          
          template = self.patterns[name]
          return template.substitute(kwargs)
docs: generate url for named url pattern with kwargs