def register_drainer(name):
 def _inner(cls):
  drainers[name] = cls
  return cls
 return _inner

def register_drainer ( name ) : def _inner ( cls ) : drainers [ name ] = cls return cls return _inner
decorator used to register a new result drainer type .