code: def test_context():
      mpl.rcParams[PARAM] = "gray"
      with temp_style("test", DUMMY_SETTINGS):
          with style.context("test"):
              assert mpl.rcParams[PARAM] == VALUE
      # Check that this value is reset after the exiting the context.
      assert mpl.rcParams[PARAM] == "gray"
  
imports: from contextlib import contextmanager
  from pathlib import Path
  from tempfile import TemporaryDirectory
  import sys
  import numpy
  import pytest
  import matplotlib
  from matplotlib import pyplot, style
  from matplotlib.style.core import USER_LIBRARY_PATHS, STYLE_EXTENSION
label_desc: Use image node_id 7 for calling a global function with example usage: test_context() without return types