code: def test_autolog_globally_configured_flag_set_correctly():
      from mlflow.utils.autologging_utils import (
          AUTOLOGGING_INTEGRATIONS,
      )
  
      AUTOLOGGING_INTEGRATIONS.clear()
      import pyspark
      import pyspark.ml  # noqa: F401
      import sklearn  # noqa: F401
  
      integrations_to_test = ["sklearn", "spark", "pyspark.ml"]
      mlflow.autolog()
      for integration_name in integrations_to_test:
          assert AUTOLOGGING_INTEGRATIONS[integration_name][
              "globally_configured"
          ]
  
      mlflow.sklearn.autolog()
      mlflow.spark.autolog()
      mlflow.pyspark.ml.autolog()
  
      for integration_name in integrations_to_test:
          assert (
              "globally_configured"
              not in AUTOLOGGING_INTEGRATIONS[integration_name]
          )
  
imports: import importlib
  import logging
  import sys
  import warnings
  from concurrent.futures import ThreadPoolExecutor
  from io import StringIO
  from itertools import permutations
  from unittest import mock
  import pytest
  import mlflow
  from mlflow import MlflowClient
  from mlflow.utils import gorilla
  from mlflow.utils.autologging_utils import autologging_is_disabled, get_autologging_config, safe_patch
  from tests.autologging.fixtures import reset_stderr, test_mode_off
label_desc: Use image node_id 11 for calling a global function with example usage: test_autolog_globally_configured_flag_set_correctly() without return types