human
I wrote the below code

    configurator = hass.components.configurator
    def configuration_callback(callback_data):
        'Called    when    config    is    submitted.'
        if (CONF_INCLUDE not in callback_data):
            configurator.notify_errors(request_id, 'Functionality    mandatory.')
            return False
        callback_data[CONF_INCLUDE] = callback_data[CONF_INCLUDE].split()
        callback_data[CONF_HOST] = host
        if (CONF_NAME not in callback_data):
            callback_data[CONF_NAME] = name
        try:
            config = DEVICE_SCHEMA(callback_data)
        except vol.Invalid:
            configurator.notify_errors(request_id, 'Bad    input,    please    check    spelling.')
            return False
        if setup_device(hass, config):
            config_file = _read_config(hass)
            config_file[serialnumber] = dict(config)
            del config_file[serialnumber]['hass']
            _write_config(hass, config_file)
            configurator.request_done(request_id)
        else:
            configurator.notify_errors(request_id, 'Failed    to    register,    please    try    again.')
            return False
    title = '{}    ({})'.format(name, host)
    request_id = configurator.request_config(hass, title, configuration_callback, description=('Functionality:    ' + str(AXIS_INCLUDE)), entity_picture='/static/images/logo_axis.png', link_name='Axis    platform    documentation', link_url='https://home-assistant.io/components/axis/', submit_caption='Confirm', fields=[{'id': CONF_NAME, 'name': 'Device    name', 'type': 'text'}, {'id': CONF_USERNAME, 'name': 'User    name', 'type': 'text'}, {'id': CONF_PASSWORD, 'name': 'Password', 'type': 'password'}, {'id': CONF_INCLUDE, 'name': 'Device    functionality    (space    separated    list)', 'type': 'text'}, {'id': ATTR_LOCATION, 'name': 'Physical    location    of    device    (optional)', 'type': 'text'}, {'id': CONF_TRIGGER_TIME, 'name': 'Sensor    update    interval    (optional)', 'type': 'number'}])

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

def request_configuration(hass, name, host, serialnumber):