code: def test_universal_autolog_makes_expected_event_logging_calls():
      class TestLogger(AutologgingEventLogger):
          LoggerCall = namedtuple(
              "LoggerCall", ["integration", "call_args", "call_kwargs"]
          )
  
          def __init__(self):
              self.calls = []
  
          def reset(self):
              self.calls = []
  
          def log_autolog_called(
              self, integration, call_args, call_kwargs
          ):
              self.calls.append(
                  TestLogger.LoggerCall(
                      integration, call_args, call_kwargs
                  )
              )
  
      logger = TestLogger()
      AutologgingEventLogger.set_logger(logger)
  
      mlflow.autolog(exclusive=True, disable=True)
  
      universal_autolog_event_logging_calls = [
          call for call in logger.calls if call.integration == "mlflow"
      ]
      assert len(universal_autolog_event_logging_calls) == 1
      call = universal_autolog_event_logging_calls[0]
      assert call.integration == "mlflow"
      assert {
          "disable": True,
          "exclusive": True,
      }.items() <= call.call_kwargs.items()
  
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 9 for calling a global function with example usage: test_universal_autolog_makes_expected_event_logging_calls() without return types