code: async def register_service(self, short_name, long_name, allow_duplicate=True):
          
  
          try:
              await self.send_command(OPERATIONS.CMD_REGISTER_SERVICE, dict(name=short_name, long_name=long_name),
                                      MESSAGES.RegisterServiceResponse)
          except ArgumentError:
              if not allow_duplicate:
                  raise
docs: Register a new service with the service manager.
  
          Args:
              short_name (string): A unique short name for this service that functions
                  as an id
              long_name (string): A user facing name for this service
              allow_duplicate (boolean): Don't throw an error if this service is already
                  registered.  This is important if the service is preregistered for example.
          Raises:
              ArgumentError: if the short_name is already taken