human
I wrote the below code

    def compute_partition(data):
        return [model.predict(d) for d in data]
    N = len(data)
    partitions = [data[a:b] for (a, b) in get_chunk_ranges(N, num_procs)]
    codes = parmap(compute_partition, partitions, num_procs)
    return chain(*codes)

What's a good function header?

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

def compute_codes_parallel(data, model, num_procs=4):