code: def test_45deg_right_downward():
      prof = profile_line(
          image, (2, 2), (8, 8), order=0, mode="constant"
      )
      expected_prof = np.array([22, 33, 33, 44, 55, 55, 66, 77, 77, 88])
      # repeats are due to aliasing using nearest neighbor interpolation.
      # to see this, imagine a diagonal line with markers every unit of
      # length traversing a checkerboard pattern of squares also of unit
      # length. Because the line is diagonal, sometimes more than one
      # marker will fall on the same checkerboard box.
      assert_almost_equal(prof, expected_prof)
  
imports: import numpy
  from ..._shared.testing import assert_equal, assert_almost_equal
  from ..profile import profile_line
label_desc: Use image node_id 5 for calling a global function with example usage: test_45deg_right_downward() without return types