code: def test_context_with_union_of_dict_and_namedstyle():
      # Test dict after style name where dict modifies the a different parameter.
      original_value = "gray"
      other_param = "text.usetex"
      other_value = True
      d = {other_param: other_value}
      mpl.rcParams[PARAM] = original_value
      mpl.rcParams[other_param] = not other_value
      with temp_style("test", DUMMY_SETTINGS):
          with style.context(["test", d]):
              assert mpl.rcParams[PARAM] == VALUE
              assert mpl.rcParams[other_param] == other_value
      assert mpl.rcParams[PARAM] == original_value
      assert mpl.rcParams[other_param] == (not other_value)
  
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 11 for calling a global function with example usage: test_context_with_union_of_dict_and_namedstyle() without return types