human
I wrote the below code

    logger.info('...    loading    dataset')
    if conf.get('sparse', False):
        expected = inspect.getargspec(load_sparse_dataset)[0][1:]
        data = load_sparse_dataset(conf['dataset'], **subdict(conf, expected))
        (valid, test) = data[1:3]
        if (conf['dataset'] == 'terry'):
            valid = valid[1:]
            test = test[1:]
            assert (valid.shape[0] == test.shape[0] == 4096), 'Sparse    TERRY    data    loaded    has    wrong    number    of    examples'
        if (len(data) == 3):
            return [data[0], valid, test]
        else:
            return [data[0], valid, test, data[3]]
    expected = inspect.getargspec(load_ndarray_dataset)[0][1:]
    data = load_ndarray_dataset(conf['dataset'], **subdict(conf, expected))
    if conf.get('normalize_on_the_fly', False):
        return data
    def shared_dataset(data_x):
        'Function    that    loads    the    dataset    into    shared    variables'
        if conf.get('normalize', True):
            return sharedX(data_x, borrow=True)
        else:
            return theano.shared(theano._asarray(data_x), borrow=True)
    return map(shared_dataset, data)

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

def load_data(conf):