code: def _register_nested_router(self, router):
          
          assert issubclass(router.__class__, NestedSimpleRouter), "You can only register NestedSimpleRouters"
          self.nested_routers.append(router)
docs: NestedSimpleRouter.__init__ calls this method