code: def name_inner_event(cls):
      
      if hasattr(cls, 'Event'):
          cls.Event._event_name = '{}.Event'.format(cls.__name__)
      else:
          warnings.warn('Class {} does not have a inner Event'.format(cls))
      return cls
docs: Decorator to rename cls.Event 'Event' as 'cls.Event