code: def test_autolog_obeys_disabled():
      from mlflow.utils.autologging_utils import (
          AUTOLOGGING_INTEGRATIONS,
      )
  
      mlflow.autolog(disable=True)
      mlflow.utils.import_hooks.notify_module_loaded(sklearn)
      assert get_autologging_config("sklearn", "disable")
  
      mlflow.autolog()
      mlflow.utils.import_hooks.notify_module_loaded(sklearn)
      mlflow.autolog(disable=True)
      mlflow.utils.import_hooks.notify_module_loaded(sklearn)
      assert get_autologging_config("sklearn", "disable")
  
      mlflow.autolog(disable=False)
      mlflow.utils.import_hooks.notify_module_loaded(sklearn)
      assert not get_autologging_config("sklearn", "disable")
      mlflow.sklearn.autolog(disable=True)
      assert get_autologging_config("sklearn", "disable")
  
      AUTOLOGGING_INTEGRATIONS.clear()
      mlflow.autolog(disable_for_unsupported_versions=False)
      mlflow.utils.import_hooks.notify_module_loaded(sklearn)
      assert not get_autologging_config(
          "sklearn", "disable_for_unsupported_versions"
      )
      mlflow.autolog(disable_for_unsupported_versions=True)
      mlflow.utils.import_hooks.notify_module_loaded(sklearn)
      assert get_autologging_config(
          "sklearn", "disable_for_unsupported_versions"
      )
  
      mlflow.sklearn.autolog(disable_for_unsupported_versions=False)
      assert not get_autologging_config(
          "sklearn", "disable_for_unsupported_versions"
      )
      mlflow.sklearn.autolog(disable_for_unsupported_versions=True)
      assert get_autologging_config(
          "sklearn", "disable_for_unsupported_versions"
      )
  
imports: import sys
  from collections import namedtuple
  from io import StringIO
  from unittest import mock
  import fastai
  import lightgbm
  import pyspark
  import pyspark.ml
  import pytest
  import pytorch_lightning
  import setfit
  import sklearn
  import statsmodels
  import tensorflow
  import transformers
  import xgboost
  import mlflow
  from mlflow.utils.autologging_utils import AutologgingEventLogger, autologging_is_disabled, get_autologging_config
  from tests.autologging.fixtures import reset_stderr, test_mode_off, test_mode_on
label_desc: Use image node_id 10 for calling a global function with example usage: test_autolog_obeys_disabled() without return types