def METHOD_NAME(self, context, context_staging_dir):
    """Find first TVPaint file in tasks and use it."""
    batch_dir = context.data["batchDir"]
    batch_data = context.data["batchData"]
    src_workfile_path = None
    for task_id in batch_data["tasks"]:
        if src_workfile_path is not None:
            break
        task_dir = os.path.join(batch_dir, task_id)
        task_manifest_path = os.path.join(task_dir, "manifest.json")
        task_data = parse_json(task_manifest_path)
        task_files = task_data["files"]
        for filename in task_files:
            _, ext = os.path.splitext(filename)
            if ext.lower() == ".tvpp":
                src_workfile_path = os.path.join(task_dir, filename)
                break
    # Copy workfile to job queue work root
    new_workfile_path = os.path.join(
        context_staging_dir, os.path.basename(src_workfile_path)
    )
    shutil.copy(src_workfile_path, new_workfile_path)
    return new_workfile_path