human
I wrote the below code

    from flask_babel import Babel
    babel = Babel(app)
    supported = app.config.get('BABEL_SUPPORTED_LOCALES', ['en', 'zh'])
    default = app.config.get('BABEL_DEFAULT_LOCALE', 'en')
    @babel.localeselector
    def get_locale():
        return request.accept_languages.best_match(supported, default)

What's a good function header?

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

def register_babel(app):