class_docstr: 使用例子
  with Capturing() as output:
      do_something
  
  assert 'xxx' in output[0]
code: def __init__(self, no_del=False):
      # 如果no_del为True，则不会删除_stringio，和_stringioerr
      super().__init__()
      self.no_del = no_del
  
imports: import os
  import sys
  import __main__
  from functools import wraps, partial
  from inspect import ismethod
  from copy import deepcopy
  from io import StringIO
  import time
  import signal
  import pytest
  import numpy
  from fastNLP.core.utils.utils import get_class_that_defined_method
  from fastNLP.envs.env import FASTNLP_GLOBAL_RANK
  from fastNLP.core.drivers.utils import distributed_open_proc
  from fastNLP.core.log import logger
label_desc: Use image node_id 1 to create a new Capturing object from inherited base classes: list with example: obj = Capturing(no_del)