code: def test_ellipse_rotated():
      img = np.zeros((1000, 1200), dtype=np.uint8)
      for rot in range(0, 180, 10):
          img.fill(0)
          angle = np.deg2rad(rot)
          rr, cc = ellipse(500, 600, 200, 400, rotation=angle)
          img[rr, cc] = 1
          # estimate orientation of ellipse
          angle_estim_raw = regionprops(img)[0].orientation
          angle_estim = np.round(angle_estim_raw, 3) % (np.pi / 2)
          assert_almost_equal(angle_estim, angle % (np.pi / 2), 2)
  
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 27 for calling a global function with example usage: test_ellipse_rotated() without return types