def METHOD_NAME(self, anatomy, instance, out_dir,
                         expected_filenames):
    """Copies last published files to temporary out_dir.
    These are base of files which will be extended/fixed for specific
    frames.
    Renames published file to expected file name based on frame, eg.
    test_project_test_asset_subset_v005.1001.exr > new_render.1001.exr
    """
    last_published = instance.data["last_version_published_files"]
    last_published_and_frames = collect_frames(last_published)
    expected_and_frames = collect_frames(expected_filenames)
    frames_and_expected = {v: k for k, v in expected_and_frames.items()}
    for file_path, frame in last_published_and_frames.items():
        file_path = anatomy.fill_root(file_path)
        if not os.path.exists(file_path):
            continue
        target_file_name = frames_and_expected.get(frame)
        if not target_file_name:
            continue
        out_path = os.path.join(out_dir, target_file_name)
        self.log.debug("Copying '{}' -> '{}'".format(file_path, out_path))
        shutil.copy(file_path, out_path)
        # TODO shouldn't this be uncommented
        # instance.context.data["cleanupFullPaths"].append(out_path)