code: def test_universal_autolog_does_not_throw_if_specific_autolog_throws_in_standard_mode(
      library, mlflow_module
  ):
      # In this file mock is conflicting with lazy loading. Call the module to avoid errors.
      # TODO(chenmoneygithub): investigate why this is happening and remove the call.
      mlflow_module.autolog
      with mock.patch(
          mlflow_module.__name__ + ".autolog"
      ) as autolog_mock:
          autolog_mock.side_effect = Exception("asdf")
          mlflow.autolog()
          if library != pyspark and library != pyspark.ml:
              autolog_mock.assert_not_called()
  
          mlflow.utils.import_hooks.notify_module_loaded(library)
          autolog_mock.assert_called_once()
  
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 4 for calling a global function with example usage: test_universal_autolog_does_not_throw_if_specific_autolog_throws_in_standard_mode(library, mlflow_module) without return types