code: def test_contour_linewidth(
      rc_lines_linewidth,
      rc_contour_linewidth,
      call_linewidths,
      expected,
  ):
      with rc_context(
          rc={
              "lines.linewidth": rc_lines_linewidth,
              "contour.linewidth": rc_contour_linewidth,
          }
      ):
          fig, ax = plt.subplots()
          X = np.arange(4 * 3).reshape(4, 3)
          cs = ax.contour(X, linewidths=call_linewidths)
          assert cs.get_linewidths()[0] == expected
          with pytest.warns(
              mpl.MatplotlibDeprecationWarning, match="tlinewidths"
          ):
              assert cs.tlinewidths[0][0] == expected
  
imports: import datetime
  import platform
  import re
  from unittest import mock
  import contourpy
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_almost_equal_nulp, assert_array_equal
  import matplotlib
  from matplotlib import pyplot, rc_context, ticker
  from matplotlib.colors import LogNorm, same_color
  import matplotlib.patches
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
  import pytest
label_desc: Use image node_id 25 for calling a global function with example usage: test_contour_linewidth(rc_lines_linewidth, rc_contour_linewidth, call_linewidths, expected) without return types