docstr: 设置 log 的 terminal 输出形式。
  
  :param stdout: 可选['rich', 'naive', 'raw', 'none']。
  :param level: 可选 ['INFO', 'WARNING', 'DEBUG', 'ERROR', 'AUTO'], 其中AUTO表示根据环境变量"FASTNLP_LOG_LEVEL'进行
      设置。
  :return:
code: def set_stdout(self, stdout: str = "raw", level: str = "AUTO"):
      """
      设置 log 的 terminal 输出形式。
  
      :param stdout: 可选['rich', 'naive', 'raw', 'none']。
      :param level: 可选 ['INFO', 'WARNING', 'DEBUG', 'ERROR', 'AUTO'], 其中AUTO表示根据环境变量"FASTNLP_LOG_LEVEL'进行
          设置。
      :return:
      """
      r"""设置标准输出格式和输出级别"""
      if level == "AUTO":
          level = parse_level()
      return _set_stdout_handler(self, stdout, level)
  
imports: import logging
  import logging.config
  from logging import DEBUG, ERROR, INFO, WARNING, CRITICAL, raiseExceptions
  import os
  import sys
  import warnings
  from pathlib import Path
  from typing import Optional, Union
  from rich.logging import RichHandler
  from fastNLP.core.log.handler import StdoutStreamHandler, TqdmLoggingHandler
  from fastNLP.envs.env import FASTNLP_LOG_LEVEL, FASTNLP_GLOBAL_RANK, FASTNLP_LAUNCH_TIME, FASTNLP_BACKEND_LAUNCH
  from fastNLP.envs.distributed import is_cur_env_distributed
label_desc: Use image node_id 3 for calling the FastNLPLogger obj's underlying member method code with example usage: obj.set_stdout(stdout, level) and returns: _set_stdout_handler