human
Here's a good function header given the following:
I wrote the below code

    if (transformer_spec.connector in CONNECTOR_FACTORIES):
        connector_factory = CONNECTOR_FACTORIES[transformer_spec.connector]
    elif (config_globals and ('.' in transformer_spec.connector)):
        try:
            connector_factory = eval(transformer_spec.connector, config_globals)
        except (NameError, AttributeError):
            raise bulkloader_errors.InvalidConfiguration(('Invalid    connector    specified    for    name=%s.    Could    not    evaluate    %s.' % (transformer_spec.name, transformer_spec.connector)))
    else:
        raise bulkloader_errors.InvalidConfiguration(('Invalid    connector    specified    for    name=%s.    Must    be    either    a    built    in    connector    ("%s")    or    a    factory    method    in    a    module    imported    via    python_preamble.' % (transformer_spec.name, '",    "'.join(CONNECTOR_FACTORIES))))
    options = {}
    if transformer_spec.connector_options:
        options = transformer_spec.connector_options.ToDict()
    try:
        connector_object = connector_factory(options, transformer_spec.name)
    except TypeError:
        raise bulkloader_errors.InvalidConfiguration(('Invalid    connector    specified    for    name=%s.    Could    not    initialize    %s.' % (transformer_spec.name, transformer_spec.connector)))
    dict_to_model_object = DictConvertor(transformer_spec)
    class ImporterClass(GenericImporter, ):
        'Class    to    pass    to    the    bulkloader,    wraps    the    specificed    configuration.'
        def __init__(self):
            super(self.__class__, self).__init__(connector_object.generate_import_record, dict_to_model_object.dict_to_entity, transformer_spec.name, reserve_keys)
    importer_class = ImporterClass
    class ExporterClass(GenericExporter, ):
        'Class    to    pass    to    the    bulkloader,    wraps    the    specificed    configuration.'
        def __init__(self):
            super(self.__class__, self).__init__(connector_object, dict_to_model_object.entity_to_dict,...

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

def create_transformer_classes(transformer_spec, config_globals, reserve_keys):