<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_service(self, **kwargs):
 """ register this service with consul kwargs passed to Consul.agent.service.register """

        kwargs.setdefault('name', self.app.name)
        self.session.agent.service.register(**kwargs)