prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  measure.label is documented under morphology.label
  In the [measure API reference](http://scikit-image.org/docs/stable/api/skimage.measure.html) label is not documented, but it is [documented under morphology module](http://scikit-image.org/docs/stable/api/skimage.morphology.html#label) (which is depreciated).
  
  
  </issue>
  <code>
  [start of skimage/measure/__init__.py]
  1 from ._find_contours import find_contours
  2 from ._marching_cubes import (marching_cubes, mesh_surface_area,
  3                               correct_mesh_orientation)
  4 from ._regionprops import regionprops, perimeter
  5 from ._structural_similarity import structural_similarity
  6 from ._polygon import approximate_polygon, subdivide_polygon
  7 from ._pnpoly import points_in_poly, grid_points_in_poly
  8 from ._moments import moments, moments_central, moments_normalized, moments_hu
  9 from .profile import profile_line
  10 from .fit import LineModel, CircleModel, EllipseModel, ransac
  11 from .block import block_reduce
  12 from ._ccomp import label
  13 
  14 
  15 __all__ = ['find_contours',
  16            'regionprops',
  17            'perimeter',
  18            'structural_similarity',
  19            'approximate_polygon',
  20            'subdivide_polygon',
  21            'LineModel',
  22            'CircleModel',
  23            'EllipseModel',
  24            'ransac',
  25            'block_reduce',
  26            'moments',
  27            'moments_central',
  28            'moments_normalized',
  29            'moments_hu',
  30            'marching_cubes',
  31            'mesh_surface_area',
  32            'correct_mesh_orientation',
  33            'profile_line',
  34            'label',
  35            'points_in_poly',
  36            'grid_points_in_poly']
  37
  [end of skimage/measure/__init__.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/skimage/measure/__init__.py b/skimage/measure/__init__.py
  --- a/skimage/measure/__init__.py
  +++ b/skimage/measure/__init__.py
  @@ -9,7 +9,7 @@
   from .profile import profile_line
   from .fit import LineModel, CircleModel, EllipseModel, ransac
   from .block import block_reduce
  -from ._ccomp import label
  +from ._label import label
   
   
   __all__ = ['find_contours',
  
verification_info: {"golden_diff": "diff --git a/skimage/measure/__init__.py b/skimage/measure/__init__.py\n--- a/skimage/measure/__init__.py\n+++ b/skimage/measure/__init__.py\n@@ -9,7 +9,7 @@\n from .profile import profile_line\n from .fit import LineModel, CircleModel, EllipseModel, ransac\n from .block import block_reduce\n-from ._ccomp import label\n+from ._label import label\n \n \n __all__ = ['find_contours',\n", "issue": "measure.label is documented under morphology.label\nIn the [measure API reference](http://scikit-image.org/docs/stable/api/skimage.measure.html) label is not documented, but it is [documented under morphology module](http://scikit-image.org/docs/stable/api/skimage.morphology.html#label) (which is depreciated).\n\n", "before_files": [{"content": "from ._find_contours import find_contours\nfrom ._marching_cubes import (marching_cubes, mesh_surface_area,\n                              correct_mesh_orientation)\nfrom ._regionprops import regionprops, perimeter\nfrom ._structural_similarity import structural_similarity\nfrom ._polygon import approximate_polygon, subdivide_polygon\nfrom ._pnpoly import points_in_poly, grid_points_in_poly\nfrom ._moments import moments, moments_central, moments_normalized, moments_hu\nfrom .profile import profile_line\nfrom .fit import LineModel, CircleModel, EllipseModel, ransac\nfrom .block import block_reduce\nfrom ._ccomp import label\n\n\n__all__ = ['find_contours',\n           'regionprops',\n           'perimeter',\n           'structural_similarity',\n           'approximate_polygon',\n           'subdivide_polygon',\n           'LineModel',\n           'CircleModel',\n           'EllipseModel',\n           'ransac',\n           'block_reduce',\n           'moments',\n           'moments_central',\n           'moments_normalized',\n           'moments_hu',\n           'marching_cubes',\n           'mesh_surface_area',\n           'correct_mesh_orientation',\n           'profile_line',\n           'label',\n           'points_in_poly',\n           'grid_points_in_poly']\n", "path": "skimage/measure/__init__.py"}]}