code: def finish_task(id_task):
      global current_task
  
      if current_task == id_task:
          current_task = None
  
      finished_tasks.append(id_task)
      if len(finished_tasks) > 16:
          finished_tasks.pop(0)
  
file_path: stable-diffusion-webui/modules/progress.py
imports: import base64
  import io
  import time
  import gradio
  from pydantic import BaseModel, Field
  from modules.shared import opts
  import modules.shared
label_desc: Use image node_id 2 for calling a global function with example usage: finish_task(id_task) without return types