code: def new_progess(
      self,
      *columns: Union[str, ProgressColumn],
      # 这里将 auto_refresh 关掉是想要避免单独开启线程，同时也是为了避免pdb的时候会持续刷新
      auto_refresh: bool = False,
      refresh_per_second: float = 10,
      speed_estimate_period: float = 30.0,
      transient: bool = True,
      redirect_stdout: bool = True,
      redirect_stderr: bool = True,
      get_time: Optional[GetTimeCallable] = None,
      disable: bool = False,
      expand: bool = False,
  ):
      for task_id in self.task_ids:  # 首先移除已有的
          self.remove_task(task_id)
  
      assert (
          refresh_per_second is None or refresh_per_second > 0
      ), "refresh_per_second must be > 0"
  
      # stop previous columns
      self.stop()
  
      # do not change these variables
      # self._lock = RLock()
      # self._tasks: Dict[TaskID, Task] = {}
      # self._task_index: TaskID = TaskID(0)
  
      if len(columns) != 0:
          self.columns = columns
  
      self.speed_estimate_period = speed_estimate_period
  
      self.disable = disable
      self.expand = expand
  
      self.live = Live(
          console=get_console(),
          auto_refresh=auto_refresh,
          refresh_per_second=refresh_per_second,
          transient=transient,
          redirect_stdout=redirect_stdout,
          redirect_stderr=redirect_stderr,
          get_renderable=self.get_renderable,
      )
      self.get_time = get_time or self.console.get_time
      self.print = self.console.print
      self.log = self.console.log
      self.auto_refresh = auto_refresh
      self.transient = transient
      self.redirect_stdout = redirect_stdout
      self.redirect_stderr = redirect_stderr
      self.refresh_per_second = refresh_per_second
      self._need_renew_live = False
  
      return self
  
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 1 for calling the FRichProgress obj's underlying member method code with example usage: obj.new_progess() and returns: self