code: def stop_task(self, task_id: TaskID) -> None:
      if task_id in self._tasks:
          super().stop_task(task_id)
  
imports: import sys
  from typing import Any, Union, Optional
  from rich.progress import Progress, Console, GetTimeCallable, get_console, TaskID, Live, Text, ProgressSample
  from rich.progress import ProgressColumn, TimeRemainingColumn, BarColumn, TimeElapsedColumn, TextColumn
  from fastNLP.envs import get_global_rank
  from .utils import is_notebook
label_desc: Use image node_id 5 for calling the FRichProgress obj's underlying member method code with example usage: obj.stop_task(task_id) without return types