code: def set_mlflow_events_and_warnings_behavior_globally(
      disable_event_logs, disable_warnings, reroute_warnings
  ):
      """Threadsafe context manager that modifies the behavior of MLflow event logging statements
      and MLflow warnings upon entry, according to the specified parameters. Modifications are
      applied globally across all threads and are not reverted until all threads that have made
      a particular modification have exited the context.
  
      Args:
          disable_event_logs: If `True`, disable (mute & discard) MLflow event logging statements.
              If `False`, do not disable MLflow event logging statements.
          disable_warnings: If `True`, disable  (mutate & discard) MLflow warnings. If `False`,
              do not disable MLflow warnings.
          reroute_warnings: If `True`, reroute MLflow warnings to an MLflow event logger with
              level WARNING. If `False`, do not reroute MLflow warnings.
  
      """
  
      with _SetMLflowEventsAndWarningsBehaviorGlobally(
          disable_event_logs, disable_warnings, reroute_warnings
      ):
          yield
  
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 2 for calling a global function with example usage: set_mlflow_events_and_warnings_behavior_globally(disable_event_logs, disable_warnings, reroute_warnings) without return types