def METHOD_NAME(root_paths, helm_values, merge_build_path=DEFAULT_MERGE_PATH):
    """
    Gets the same paths from preprocess_build_overrides
    """
    if not isabs(merge_build_path):
        merge_build_path = join(os.getcwd(), merge_build_path)
    artifacts = {}
    for root_path in root_paths:
        for base_path in find_subdirs(join(root_path, BASE_IMAGES_PATH)):
            app_name = app_name_from_path(basename(base_path))
            if app_name not in helm_values[KEY_TASK_IMAGES]:
                continue
            if app_name not in artifacts:
                artifacts[app_name] = base_path
            else:
                artifacts[app_name] = join(
                        merge_build_path,
                        relpath( base_path, root_path)
                    )
    for root_path in root_paths:
        for base_path in find_subdirs(join(root_path, STATIC_IMAGES_PATH)):
            app_name = app_name_from_path(basename(base_path))
            if app_name not in helm_values[KEY_TASK_IMAGES]:
                continue
            if app_name not in artifacts:
                artifacts[app_name] = base_path
            else:
                artifacts[app_name] = join(
                        merge_build_path,
                        relpath( base_path, root_path)
                    )
    for root_path in root_paths:
        for base_path in find_subdirs(join(root_path, APPS_PATH)):
            app_name = app_name_from_path(basename(base_path))
            if app_name.replace("-", "_") not in helm_values[KEY_APPS]:
                continue
            if app_name not in artifacts:
                artifacts[app_name] = base_path
            else:
                artifacts[app_name] = join(
                        merge_build_path,
                        relpath( base_path, root_path)
                    )
    return artifacts