code: def warnings_to_stdout():
      """Redirect all warnings to stdout."""
      showwarning_orig = warnings.showwarning
  
      def showwarning(msg, cat, fname, lno, file=None, line=0):
          showwarning_orig(
              msg, cat, os.path.basename(fname), line, sys.stdout
          )
  
      warnings.showwarning = showwarning
  
file_path: catboost/contrib/python/joblib/joblib/testing.py
imports: import sys
  import warnings
  import os.path
  import re
  import subprocess
  import threading
  import pytest
  import _pytest
label_desc: Use image node_id 1 for calling a global function with example usage: warnings_to_stdout() without return types