def METHOD_NAME(image_obj, top_layer, driver):
    '''Given the image object and the top most layer, mount all the layers
    until the top layer using overlayfs'''
    layer_paths = []
    for index in range(0, top_layer + 1):
        layer_paths.append(image_obj.layers[index].get_untar_dir())
    target = rootfs.mount_diff_layers(layer_paths, driver)
    return target