docstr: 设置当前 progress bar 的状态，如果为 True ，则不会显示进度条了。
  
  :param flag:
  :return:
docstr_tok: ["\u8bbe\u7f6e\u5f53\u524d","progress","bar","\u7684\u72b6\u6001\uff0c\u5982\u679c\u4e3a","True","\uff0c\u5219\u4e0d\u4f1a\u663e\u793a\u8fdb\u5ea6\u6761\u4e86\u3002",":","param","flag",":",":","return",":"]
code: def set_disable(self, flag: bool = True):
      """
      设置当前 progress bar 的状态，如果为 True ，则不会显示进度条了。
  
      :param flag:
      :return:
      """
      self.disable = flag
  
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 3 for calling the FRichProgress obj's underlying member method code with example usage: obj.set_disable(flag) without return types