<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def register(self, widget, basename, **parameters):
 """ Register a widget, URL basename and any optional URL parameters. Parameters are passed as keyword arguments, i.e. This would be the equivalent of manually adding the following to urlpatterns: MyWidget.as_view(), "widget_mywidget") """

        self.registry.append((widget, basename, parameters))