code: def test_delaunay_points_in_line():
      # Cannot triangulate points that are all in a straight line, but check
      # that delaunay code fails gracefully.
      x = np.linspace(0.0, 10.0, 11)
      y = np.linspace(0.0, 10.0, 11)
      with pytest.raises(RuntimeError):
          mtri.Triangulation(x, y)
  
      # Add an extra point not on the line and the triangulation is OK.
      x = np.append(x, 2.0)
      y = np.append(y, 8.0)
      mtri.Triangulation(x, y)
  
imports: import numpy
  from numpy.testing import assert_array_equal, assert_array_almost_equal, assert_array_less
  import numpy.ma.testutils
  import pytest
  import matplotlib
  import matplotlib.pyplot
  import matplotlib.tri
  from matplotlib.path import Path
  from matplotlib.testing.decorators import image_comparison, check_figures_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_delaunay_points_in_line() without return types