human
I wrote the below code

    def scale_0_255(x):
        xmin = x.min()
        xmax = x.max()
        return numpy.asarray(((255 * (x - xmin)) / max((xmax - xmin), min_dynamic_range)), dtype='uint8')
    if scale_each:
        uintX = numpy.empty(X.shape, dtype='uint8')
        for (i, Xi) in enumerate(X):
            uintX[i] = scale_0_255(Xi)
        X = uintX
    else:
        X = scale_0_255(X)
    return tile_slices_to_image_uint8(X, tile_shape=tile_shape)

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

def tile_slices_to_image(X, tile_shape=None, scale_each=True, min_dynamic_range=0.0001):