code: def init_app(self, app):
          
          app.url_rule_class = partial(NavigationRule, copilot=self)
          app.context_processor(self.inject_context)
docs: Register the extension with the application.
  
          Args:
              app (flask.Flask): The application to register with.