code: def std_out_err_redirect_tqdm():
      orig_out_err = sys.stdout, sys.stderr
      try:
          sys.stdout, sys.stderr = map(DummyTqdmFile, orig_out_err)
          yield orig_out_err[0]
      # Relay exceptions
      except Exception as exc:
          raise exc
      # Always restore sys.stdout/err if necessary
      finally:
          sys.stdout, sys.stderr = orig_out_err
  
file_path: hyperopt/hyperopt/std_out_err_redirect_tqdm.py
imports: import contextlib
  import sys
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: std_out_err_redirect_tqdm() without return types