class_docstr: Provides threadsafe utilities to modify warning behavior for MLflow autologging, including:
  
  - Global disablement of MLflow warnings across all threads
  - Global rerouting of MLflow warnings to an MLflow event logger (i.e. `logger.warning()`)
    across all threads
  - Disablement of non-MLflow warnings for the current thread
  - Rerouting of non-MLflow warnings to an MLflow event logger for the current thread
docstr: Enables (or disables) rerouting of non-MLflow warnings to an MLflow event logger with
  level WARNING (e.g. `logger.warning()`) for the current thread.
  
  Args:
      rerouted: If `True`, enables non-MLflow warning rerouting for the current thread.
          If `False`, disables non-MLflow warning rerouting for the current thread.
          non-MLflow warning behavior in other threads is unaffected.
docstr_tok: ["Enables","(","or","disables",")","rerouting","of","non-MLflow","warnings","to","an","MLflow","event","logger","with","level","WARNING","(","e.g",".","`","logger.warning","(",")","`",")","for","the","current","thread",".","Args",":","rerouted",":","If","`","True","`",",","enables","non-MLflow","warning","rerouting","for","the","current","thread",".","If","`","False","`",",","disables","non-MLflow","warning","rerouting","for","the","current","thread",".","non-MLflow","warning","behavior","in","other","threads","is","unaffected","."]
code: def set_non_mlflow_warnings_rerouting_state_for_current_thread(
      self, rerouted=True
  ):
      """Enables (or disables) rerouting of non-MLflow warnings to an MLflow event logger with
      level WARNING (e.g. `logger.warning()`) for the current thread.
  
      Args:
          rerouted: If `True`, enables non-MLflow warning rerouting for the current thread.
              If `False`, disables non-MLflow warning rerouting for the current thread.
              non-MLflow warning behavior in other threads is unaffected.
  
      """
      with self._state_lock:
          if rerouted:
              self._rerouted_threads.add(get_current_thread_id())
          else:
              self._rerouted_threads.discard(get_current_thread_id())
          self._modify_patch_state_if_necessary()
  
imports: import os
  import warnings
  from contextlib import contextmanager
  from pathlib import Path
  from threading import RLock
  from threading import get_ident
  import mlflow
  from mlflow.utils import logging_utils
label_desc: Use image node_id 8 for calling the _WarningsController obj's underlying member method code with example usage: obj.set_non_mlflow_warnings_rerouting_state_for_current_thread(rerouted) without return types