code: def test_clipping_full():
      p = Path([[1e30, 1e30]] * 5)
      simplified = list(p.iter_segments(clip=[0, 0, 100, 100]))
      assert simplified == []
  
      p = Path([[50, 40], [75, 65]], [1, 2])
      simplified = list(p.iter_segments(clip=[0, 0, 100, 100]))
      assert [(list(x), y) for x, y in simplified] == [
          ([50, 40], 1),
          ([75, 65], 2),
      ]
  
      p = Path([[50, 40]], [1])
      simplified = list(p.iter_segments(clip=[0, 0, 100, 100]))
      assert [(list(x), y) for x, y in simplified] == [([50, 40], 1)]
  
imports: import base64
  import io
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  import pytest
  from matplotlib.testing.decorators import check_figures_equal, image_comparison, remove_ticks_and_titles
  import matplotlib.pyplot
  from matplotlib import patches, transforms
  from matplotlib.path import Path
label_desc: Use image node_id 19 for calling a global function with example usage: test_clipping_full() without return types