code: def test_contour_label_with_disconnected_segments(split_collections):
      x, y = np.mgrid[-1:1:21j, -1:1:21j]
      z = 1 / np.sqrt(0.01 + (x + 0.3) ** 2 + y**2)
      z += 1 / np.sqrt(0.01 + (x - 0.3) ** 2 + y**2)
  
      plt.figure()
      cs = plt.contour(x, y, z, levels=[7])
  
      # Adding labels should invalidate the old style
      _maybe_split_collections(split_collections)
  
      cs.clabel(manual=[(0.2, 0.1)])
  
      _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 10 for calling a global function with example usage: test_contour_label_with_disconnected_segments(split_collections) without return types