code: def test_setting_backend_without_plot_raises(monkeypatch):
      # GH-28163
      module = types.ModuleType("pandas_plot_backend")
      monkeypatch.setitem(sys.modules, "pandas_plot_backend", module)
  
      assert pandas.options.plotting.backend == "matplotlib"
      with pytest.raises(
          ValueError,
          match="Could not find plotting backend 'pandas_plot_backend'.",
      ):
          pandas.set_option("plotting.backend", "pandas_plot_backend")
  
      assert pandas.options.plotting.backend == "matplotlib"
  
file_path: pandas/pandas/tests/plotting/test_backend.py
imports: import sys
  import types
  import pytest
  import pandas.util._test_decorators
  import pandas
label_desc: Use image node_id 7 for calling a global function with example usage: test_setting_backend_without_plot_raises(monkeypatch) without return types