code: def test_mode_off():
      prev_env_var_value = os.environ.pop(
          _MLFLOW_AUTOLOGGING_TESTING.name, None
      )
      try:
          os.environ[_MLFLOW_AUTOLOGGING_TESTING.name] = "false"
          assert not is_testing()
          yield
      finally:
          if prev_env_var_value:
              os.environ[
                  _MLFLOW_AUTOLOGGING_TESTING.name
              ] = prev_env_var_value
          else:
              del os.environ[_MLFLOW_AUTOLOGGING_TESTING.name]
  
file_path: mlflow/tests/autologging/fixtures.py
imports: import os
  import sys
  import pytest
  from mlflow.environment_variables import _MLFLOW_AUTOLOGGING_TESTING
  from mlflow.utils import logging_utils
  from mlflow.utils.autologging_utils import is_testing
label_desc: Use image node_id 2 for calling a global function with example usage: test_mode_off() without return types