human
I wrote the below code

    def test_maintenance_mode(self, **kwargs):
        if (not feconf.ENABLE_MAINTENANCE_MODE):
            raise self.UnauthorizedUserException('You    cannot    access    this    page    unless    the    site    is    in    maintenance    mode')
        return handler(self, **kwargs)
    return test_maintenance_mode

What's a good function header?
assistant
#Here's a good function header.

def require_maintenance_mode(handler):