code: def test_check_library_installed(monkeypatch):
      """Check import error changed."""
      orig_import_module = importlib.import_module
  
      def patched_import_module(name):
          if name == "pandas":
              raise ImportError()
          orig_import_module(name, package=None)
  
      monkeypatch.setattr(
          importlib, "import_module", patched_import_module
      )
  
      msg = "Setting output container to 'pandas' requires"
      with pytest.raises(ImportError, match=msg):
          check_library_installed("pandas")
  
imports: import importlib
  from collections import namedtuple
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from sklearn._config import config_context, get_config
  from sklearn.preprocessing import StandardScaler
  from sklearn.utils._set_output import ADAPTERS_MANAGER, ContainerAdapterProtocol, _get_output_config, _safe_set_output, _SetOutputMixin, _wrap_data_with_container, check_library_installed
  from sklearn.utils.fixes import CSR_CONTAINERS
label_desc: Use image node_id 18 for calling a global function with example usage: test_check_library_installed(monkeypatch) without return types