code: def disable_system_metrics_logging():
      yield
      # Unset the environment variables to avoid affecting other test cases.
      mlflow.disable_system_metrics_logging()
      mlflow.set_system_metrics_sampling_interval(None)
      mlflow.set_system_metrics_samples_before_logging(None)
  
file_path: mlflow/tests/system_metrics/test_system_metrics_logging.py
imports: import threading
  import time
  import pytest
  import mlflow
  from mlflow.system_metrics.system_metrics_monitor import SystemMetricsMonitor
label_desc: Use image node_id 1 for calling a global function with example usage: disable_system_metrics_logging() without return types