code: def test_contour_addlines(split_collections):
      # Remove this line when this test image is regenerated.
      plt.rcParams["pcolormesh.snap"] = False
  
      fig, ax = plt.subplots()
      np.random.seed(19680812)
      X = np.random.rand(10, 10) * 10000
      pcm = ax.pcolormesh(X)
      # add 1000 to make colors visible...
      cont = ax.contour(X + 1000)
      cb = fig.colorbar(pcm)
      cb.add_lines(cont)
      assert_array_almost_equal(
          cb.ax.get_ylim(), [114.3091, 9972.30735], 3
      )
  
      _maybe_split_collections(split_collections)
  
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 23 for calling a global function with example usage: test_contour_addlines(split_collections) without return types