code: def test_bezier_segment_straight():
      image = np.zeros((200, 200), dtype=int)
      r0, r1, r2 = 50, 150, 150
      c0, c1, c2 = 50, 50, 150
      rr, cc = _bezier_segment(r0, c0, r1, c1, r2, c2, 0)
      image[rr, cc] = 1
  
      image2 = np.zeros((200, 200), dtype=int)
      rr, cc = line(r0, c0, r2, c2)
      image2[rr, cc] = 1
      assert_array_equal(image, image2)
  
imports: import numpy
  from numpy.testing import assert_array_equal, assert_equal, assert_almost_equal
  import pytest
  from skimage._shared.testing import run_in_parallel
  from skimage._shared._dependency_checks import has_mpl
  from skimage.draw import set_color, line, line_aa, polygon, polygon_perimeter, disk, circle_perimeter, circle_perimeter_aa, ellipse, ellipse_perimeter, _bezier_segment, bezier_curve, rectangle, rectangle_perimeter
  from skimage.measure import regionprops
label_desc: Use image node_id 34 for calling a global function with example usage: test_bezier_segment_straight() without return types