We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Keybinding to set a new label doesn't work consistently
### 🐛 Bug Report

After creating a labels layer, I observed that the `m` keybinding does not behave consistently.



### 💡 Steps to Reproduce

Create a labels layer.

- If the layer is selected, the `m` keybinding will either do nothing or select another layer wiht a name that starts with the letter `m`;
- If the paintbrush, fill bucket or polygon tools are selected, the `m` keybinding doesn't do anything;
- If the paintbrush has been used in the canvas, the `m` keybinding correctly adds 1 to the label control and a new label is selected and can be used to paint.

### 💡 Expected Behavior

The `m` keybinding should increase the label number in all those situations.

### 🌎 Environment

napari: 0.5.0a2.dev486+g4d60a7ce
Platform: Linux-6.1.64-1-MANJARO-x86_64-with-glibc2.38
System: Manjaro Linux
Python: 3.11.6 | packaged by conda-forge | (main, Oct  3 2023, 10:40:35) [GCC 12.3.0]
Qt: 5.15.2
PyQt5: 5.15.10
NumPy: 1.26.2
SciPy: 1.11.4
Dask: 2023.11.0
VisPy: 0.14.1
magicgui: 0.8.0
superqt: 0.6.1
in-n-out: 0.1.9
app-model: 0.2.2
npe2: 0.7.3

OpenGL:
  - GL version:  4.6 (Compatibility Profile) Mesa 23.1.9-manjaro1.1
  - MAX_TEXTURE_SIZE: 16384

Screens:
  - screen 1: resolution 1920x1080, scale 1.0
  - screen 2: resolution 1920x1080, scale 1.0

Settings path:
  - /home/melissa/.config/napari/napari-dev_f5bfbd9c5d96bcb503f816d91f8db95d3b6d554f/settings.yaml
Plugins:
  - napari: 0.5.0a2.dev486+g4d60a7ce (77 contributions)
  - napari-console: 0.0.9 (0 contributions)
  - napari-svg: 0.1.10 (2 contributions)

### 💡 Additional Context

_No response_

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `napari/layers/labels/_labels_key_bindings.py`
Content:
```
1 import numpy as np
2 from app_model.types import KeyCode, KeyMod
3 
4 from napari.layers.labels._labels_constants import Mode
5 from napari.layers.labels.labels import Labels
6 from napari.layers.utils.layer_utils import (
7     register_layer_action,
8     register_layer_attr_action,
9 )
10 from napari.utils.notifications import show_info
11 from napari.utils.translations import trans
12 
13 MIN_BRUSH_SIZE = 1
14 
15 
16 def register_label_action(description: str, repeatable: bool = False):
17     return register_layer_action(Labels, description, repeatable)
18 
19 
20 def register_label_mode_action(description):
21     return register_layer_attr_action(Labels, description, 'mode')
22 
23 
24 @register_label_mode_action(trans._('Transform'))
25 def activate_labels_transform_mode(layer: Labels):
26     layer.mode = Mode.TRANSFORM
27 
28 
29 @register_label_mode_action(trans._('Pan/zoom'))
30 def activate_labels_pan_zoom_mode(layer: Labels):
31     layer.mode = Mode.PAN_ZOOM
32 
33 
34 @register_label_mode_action(trans._("Activate the paint brush"))
35 def activate_labels_paint_mode(layer: Labels):
36     layer.mode = Mode.PAINT
37 
38 
39 @register_label_mode_action(trans._("Activate the polygon tool"))
40 def activate_labels_polygon_mode(layer: Labels):
41     layer.mode = Mode.POLYGON
42 
43 
44 @register_label_mode_action(trans._("Activate the fill bucket"))
45 def activate_labels_fill_mode(layer: Labels):
46     layer.mode = Mode.FILL
47 
48 
49 @register_label_mode_action(trans._('Pick mode'))
50 def activate_labels_picker_mode(layer: Labels):
51     """Activate the label picker."""
52     layer.mode = Mode.PICK
53 
54 
55 @register_label_mode_action(trans._("Activate the label eraser"))
56 def activate_labels_erase_mode(layer: Labels):
57     layer.mode = Mode.ERASE
58 
59 
60 labels_fun_to_mode = [
61     (activate_labels_pan_zoom_mode, Mode.PAN_ZOOM),
62     (activate_labels_transform_mode, Mode.TRANSFORM),
63     (activate_labels_erase_mode, Mode.ERASE),
64     (activate_labels_paint_mode, Mode.PAINT),
65     (activate_labels_polygon_mode, Mode.POLYGON),
66     (activate_labels_fill_mode, Mode.FILL),
67     (activate_labels_picker_mode, Mode.PICK),
68 ]
69 
70 
71 @register_label_action(
72     trans._(
73         "Set the currently selected label to the largest used label plus one."
74     ),
75 )
76 def new_label(layer: Labels):
77     """Set the currently selected label to the largest used label plus one."""
78     if isinstance(layer.data, np.ndarray):
79         layer.selected_label = np.max(layer.data) + 1
80     else:
81         show_info(
82             "Calculating empty label on non-numpy array is not supported"
83         )
84 
85 
86 @register_label_action(
87     trans._("Swap between the selected label and the background label."),
88 )
89 def swap_selected_and_background_labels(layer: Labels):
90     """Swap between the selected label and the background label."""
91     layer.swap_selected_and_background_labels()
92 
93 
94 @register_label_action(
95     trans._("Decrease the currently selected label by one."),
96 )
97 def decrease_label_id(layer: Labels):
98     layer.selected_label -= 1
99 
100 
101 @register_label_action(
102     trans._("Increase the currently selected label by one."),
103 )
104 def increase_label_id(layer: Labels):
105     layer.selected_label += 1
106 
107 
108 @register_label_action(
109     trans._("Decrease the paint brush size by one."),
110     repeatable=True,
111 )
112 def decrease_brush_size(layer: Labels):
113     """Decrease the brush size"""
114     if (
115         layer.brush_size > MIN_BRUSH_SIZE
116     ):  # here we should probably add a non-hard-coded
117         # reference to the limit values of brush size?
118         layer.brush_size -= 1
119 
120 
121 @register_label_action(
122     trans._("Increase the paint brush size by one."),
123     repeatable=True,
124 )
125 def increase_brush_size(layer: Labels):
126     """Increase the brush size"""
127     layer.brush_size += 1
128 
129 
130 @register_layer_attr_action(
131     Labels, trans._("Toggle preserve labels"), "preserve_labels"
132 )
133 def toggle_preserve_labels(layer: Labels):
134     layer.preserve_labels = not layer.preserve_labels
135 
136 
137 @Labels.bind_key(KeyMod.CtrlCmd | KeyCode.KeyZ, overwrite=True)
138 def undo(layer: Labels):
139     """Undo the last paint or fill action since the view slice has changed."""
140     layer.undo()
141 
142 
143 @Labels.bind_key(KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyZ, overwrite=True)
144 def redo(layer: Labels):
145     """Redo any previously undone actions."""
146     layer.redo()
147 
148 
149 @register_label_action(
150     trans._("Reset the current polygon"),
151 )
152 def reset_polygon(layer: Labels):
153     """Reset the drawing of the current polygon."""
154     layer._overlays["polygon"].points = []
155 
156 
157 @register_label_action(
158     trans._("Complete the current polygon"),
159 )
160 def complete_polygon(layer: Labels):
161     """Complete the drawing of the current polygon."""
162     # Because layer._overlays has type Overlay, mypy doesn't know that
163     # ._overlays["polygon"] has type LabelsPolygonOverlay, so type ignore for now
164     # TODO: Improve typing of layer._overlays to fix this
165     layer._overlays["polygon"].add_polygon_to_labels(layer)
166
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/napari/layers/labels/_labels_key_bindings.py b/napari/layers/labels/_labels_key_bindings.py
--- a/napari/layers/labels/_labels_key_bindings.py
+++ b/napari/layers/labels/_labels_key_bindings.py
@@ -76,10 +76,21 @@
 def new_label(layer: Labels):
     """Set the currently selected label to the largest used label plus one."""
     if isinstance(layer.data, np.ndarray):
-        layer.selected_label = np.max(layer.data) + 1
+        new_selected_label = np.max(layer.data) + 1
+        if layer.selected_label == new_selected_label:
+            show_info(
+                trans._(
+                    "Current selected label is not being used. You will need to use it first "
+                    "to be able to set the current select label to the next one available",
+                )
+            )
+        else:
+            layer.selected_label = new_selected_label
     else:
         show_info(
-            "Calculating empty label on non-numpy array is not supported"
+            trans._(
+                "Calculating empty label on non-numpy array is not supported"
+            )
         )

{"golden_diff": "diff --git a/napari/layers/labels/_labels_key_bindings.py b/napari/layers/labels/_labels_key_bindings.py\n--- a/napari/layers/labels/_labels_key_bindings.py\n+++ b/napari/layers/labels/_labels_key_bindings.py\n@@ -76,10 +76,21 @@\n def new_label(layer: Labels):\n     \"\"\"Set the currently selected label to the largest used label plus one.\"\"\"\n     if isinstance(layer.data, np.ndarray):\n-        layer.selected_label = np.max(layer.data) + 1\n+        new_selected_label = np.max(layer.data) + 1\n+        if layer.selected_label == new_selected_label:\n+            show_info(\n+                trans._(\n+                    \"Current selected label is not being used. You will need to use it first \"\n+                    \"to be able to set the current select label to the next one available\",\n+                )\n+            )\n+        else:\n+            layer.selected_label = new_selected_label\n     else:\n         show_info(\n-            \"Calculating empty label on non-numpy array is not supported\"\n+            trans._(\n+                \"Calculating empty label on non-numpy array is not supported\"\n+            )\n         )\n", "issue": "Keybinding to set a new label doesn't work consistently\n### \ud83d\udc1b Bug Report\n\nAfter creating a labels layer, I observed that the `m` keybinding does not behave consistently.\r\n\r\n\n\n### \ud83d\udca1 Steps to Reproduce\n\nCreate a labels layer.\r\n\r\n- If the layer is selected, the `m` keybinding will either do nothing or select another layer wiht a name that starts with the letter `m`;\r\n- If the paintbrush, fill bucket or polygon tools are selected, the `m` keybinding doesn't do anything;\r\n- If the paintbrush has been used in the canvas, the `m` keybinding correctly adds 1 to the label control and a new label is selected and can be used to paint.\n\n### \ud83d\udca1 Expected Behavior\n\nThe `m` keybinding should increase the label number in all those situations.\n\n### \ud83c\udf0e Environment\n\nnapari: 0.5.0a2.dev486+g4d60a7ce\r\nPlatform: Linux-6.1.64-1-MANJARO-x86_64-with-glibc2.38\r\nSystem: Manjaro Linux\r\nPython: 3.11.6 | packaged by conda-forge | (main, Oct  3 2023, 10:40:35) [GCC 12.3.0]\r\nQt: 5.15.2\r\nPyQt5: 5.15.10\r\nNumPy: 1.26.2\r\nSciPy: 1.11.4\r\nDask: 2023.11.0\r\nVisPy: 0.14.1\r\nmagicgui: 0.8.0\r\nsuperqt: 0.6.1\r\nin-n-out: 0.1.9\r\napp-model: 0.2.2\r\nnpe2: 0.7.3\r\n\r\nOpenGL:\r\n  - GL version:  4.6 (Compatibility Profile) Mesa 23.1.9-manjaro1.1\r\n  - MAX_TEXTURE_SIZE: 16384\r\n\r\nScreens:\r\n  - screen 1: resolution 1920x1080, scale 1.0\r\n  - screen 2: resolution 1920x1080, scale 1.0\r\n\r\nSettings path:\r\n  - /home/melissa/.config/napari/napari-dev_f5bfbd9c5d96bcb503f816d91f8db95d3b6d554f/settings.yaml\r\nPlugins:\r\n  - napari: 0.5.0a2.dev486+g4d60a7ce (77 contributions)\r\n  - napari-console: 0.0.9 (0 contributions)\r\n  - napari-svg: 0.1.10 (2 contributions)\n\n### \ud83d\udca1 Additional Context\n\n_No response_\n", "before_files": [{"content": "import numpy as np\nfrom app_model.types import KeyCode, KeyMod\n\nfrom napari.layers.labels._labels_constants import Mode\nfrom napari.layers.labels.labels import Labels\nfrom napari.layers.utils.layer_utils import (\n    register_layer_action,\n    register_layer_attr_action,\n)\nfrom napari.utils.notifications import show_info\nfrom napari.utils.translations import trans\n\nMIN_BRUSH_SIZE = 1\n\n\ndef register_label_action(description: str, repeatable: bool = False):\n    return register_layer_action(Labels, description, repeatable)\n\n\ndef register_label_mode_action(description):\n    return register_layer_attr_action(Labels, description, 'mode')\n\n\n@register_label_mode_action(trans._('Transform'))\ndef activate_labels_transform_mode(layer: Labels):\n    layer.mode = Mode.TRANSFORM\n\n\n@register_label_mode_action(trans._('Pan/zoom'))\ndef activate_labels_pan_zoom_mode(layer: Labels):\n    layer.mode = Mode.PAN_ZOOM\n\n\n@register_label_mode_action(trans._(\"Activate the paint brush\"))\ndef activate_labels_paint_mode(layer: Labels):\n    layer.mode = Mode.PAINT\n\n\n@register_label_mode_action(trans._(\"Activate the polygon tool\"))\ndef activate_labels_polygon_mode(layer: Labels):\n    layer.mode = Mode.POLYGON\n\n\n@register_label_mode_action(trans._(\"Activate the fill bucket\"))\ndef activate_labels_fill_mode(layer: Labels):\n    layer.mode = Mode.FILL\n\n\n@register_label_mode_action(trans._('Pick mode'))\ndef activate_labels_picker_mode(layer: Labels):\n    \"\"\"Activate the label picker.\"\"\"\n    layer.mode = Mode.PICK\n\n\n@register_label_mode_action(trans._(\"Activate the label eraser\"))\ndef activate_labels_erase_mode(layer: Labels):\n    layer.mode = Mode.ERASE\n\n\nlabels_fun_to_mode = [\n    (activate_labels_pan_zoom_mode, Mode.PAN_ZOOM),\n    (activate_labels_transform_mode, Mode.TRANSFORM),\n    (activate_labels_erase_mode, Mode.ERASE),\n    (activate_labels_paint_mode, Mode.PAINT),\n    (activate_labels_polygon_mode, Mode.POLYGON),\n    (activate_labels_fill_mode, Mode.FILL),\n    (activate_labels_picker_mode, Mode.PICK),\n]\n\n\n@register_label_action(\n    trans._(\n        \"Set the currently selected label to the largest used label plus one.\"\n    ),\n)\ndef new_label(layer: Labels):\n    \"\"\"Set the currently selected label to the largest used label plus one.\"\"\"\n    if isinstance(layer.data, np.ndarray):\n        layer.selected_label = np.max(layer.data) + 1\n    else:\n        show_info(\n            \"Calculating empty label on non-numpy array is not supported\"\n        )\n\n\n@register_label_action(\n    trans._(\"Swap between the selected label and the background label.\"),\n)\ndef swap_selected_and_background_labels(layer: Labels):\n    \"\"\"Swap between the selected label and the background label.\"\"\"\n    layer.swap_selected_and_background_labels()\n\n\n@register_label_action(\n    trans._(\"Decrease the currently selected label by one.\"),\n)\ndef decrease_label_id(layer: Labels):\n    layer.selected_label -= 1\n\n\n@register_label_action(\n    trans._(\"Increase the currently selected label by one.\"),\n)\ndef increase_label_id(layer: Labels):\n    layer.selected_label += 1\n\n\n@register_label_action(\n    trans._(\"Decrease the paint brush size by one.\"),\n    repeatable=True,\n)\ndef decrease_brush_size(layer: Labels):\n    \"\"\"Decrease the brush size\"\"\"\n    if (\n        layer.brush_size > MIN_BRUSH_SIZE\n    ):  # here we should probably add a non-hard-coded\n        # reference to the limit values of brush size?\n        layer.brush_size -= 1\n\n\n@register_label_action(\n    trans._(\"Increase the paint brush size by one.\"),\n    repeatable=True,\n)\ndef increase_brush_size(layer: Labels):\n    \"\"\"Increase the brush size\"\"\"\n    layer.brush_size += 1\n\n\n@register_layer_attr_action(\n    Labels, trans._(\"Toggle preserve labels\"), \"preserve_labels\"\n)\ndef toggle_preserve_labels(layer: Labels):\n    layer.preserve_labels = not layer.preserve_labels\n\n\n@Labels.bind_key(KeyMod.CtrlCmd | KeyCode.KeyZ, overwrite=True)\ndef undo(layer: Labels):\n    \"\"\"Undo the last paint or fill action since the view slice has changed.\"\"\"\n    layer.undo()\n\n\n@Labels.bind_key(KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyZ, overwrite=True)\ndef redo(layer: Labels):\n    \"\"\"Redo any previously undone actions.\"\"\"\n    layer.redo()\n\n\n@register_label_action(\n    trans._(\"Reset the current polygon\"),\n)\ndef reset_polygon(layer: Labels):\n    \"\"\"Reset the drawing of the current polygon.\"\"\"\n    layer._overlays[\"polygon\"].points = []\n\n\n@register_label_action(\n    trans._(\"Complete the current polygon\"),\n)\ndef complete_polygon(layer: Labels):\n    \"\"\"Complete the drawing of the current polygon.\"\"\"\n    # Because layer._overlays has type Overlay, mypy doesn't know that\n    # ._overlays[\"polygon\"] has type LabelsPolygonOverlay, so type ignore for now\n    # TODO: Improve typing of layer._overlays to fix this\n    layer._overlays[\"polygon\"].add_polygon_to_labels(layer)\n", "path": "napari/layers/labels/_labels_key_bindings.py"}], "after_files": [{"content": "import numpy as np\nfrom app_model.types import KeyCode, KeyMod\n\nfrom napari.layers.labels._labels_constants import Mode\nfrom napari.layers.labels.labels import Labels\nfrom napari.layers.utils.layer_utils import (\n    register_layer_action,\n    register_layer_attr_action,\n)\nfrom napari.utils.notifications import show_info\nfrom napari.utils.translations import trans\n\nMIN_BRUSH_SIZE = 1\n\n\ndef register_label_action(description: str, repeatable: bool = False):\n    return register_layer_action(Labels, description, repeatable)\n\n\ndef register_label_mode_action(description):\n    return register_layer_attr_action(Labels, description, 'mode')\n\n\n@register_label_mode_action(trans._('Transform'))\ndef activate_labels_transform_mode(layer: Labels):\n    layer.mode = Mode.TRANSFORM\n\n\n@register_label_mode_action(trans._('Pan/zoom'))\ndef activate_labels_pan_zoom_mode(layer: Labels):\n    layer.mode = Mode.PAN_ZOOM\n\n\n@register_label_mode_action(trans._(\"Activate the paint brush\"))\ndef activate_labels_paint_mode(layer: Labels):\n    layer.mode = Mode.PAINT\n\n\n@register_label_mode_action(trans._(\"Activate the polygon tool\"))\ndef activate_labels_polygon_mode(layer: Labels):\n    layer.mode = Mode.POLYGON\n\n\n@register_label_mode_action(trans._(\"Activate the fill bucket\"))\ndef activate_labels_fill_mode(layer: Labels):\n    layer.mode = Mode.FILL\n\n\n@register_label_mode_action(trans._('Pick mode'))\ndef activate_labels_picker_mode(layer: Labels):\n    \"\"\"Activate the label picker.\"\"\"\n    layer.mode = Mode.PICK\n\n\n@register_label_mode_action(trans._(\"Activate the label eraser\"))\ndef activate_labels_erase_mode(layer: Labels):\n    layer.mode = Mode.ERASE\n\n\nlabels_fun_to_mode = [\n    (activate_labels_pan_zoom_mode, Mode.PAN_ZOOM),\n    (activate_labels_transform_mode, Mode.TRANSFORM),\n    (activate_labels_erase_mode, Mode.ERASE),\n    (activate_labels_paint_mode, Mode.PAINT),\n    (activate_labels_polygon_mode, Mode.POLYGON),\n    (activate_labels_fill_mode, Mode.FILL),\n    (activate_labels_picker_mode, Mode.PICK),\n]\n\n\n@register_label_action(\n    trans._(\n        \"Set the currently selected label to the largest used label plus one.\"\n    ),\n)\ndef new_label(layer: Labels):\n    \"\"\"Set the currently selected label to the largest used label plus one.\"\"\"\n    if isinstance(layer.data, np.ndarray):\n        new_selected_label = np.max(layer.data) + 1\n        if layer.selected_label == new_selected_label:\n            show_info(\n                trans._(\n                    \"Current selected label is not being used. You will need to use it first \"\n                    \"to be able to set the current select label to the next one available\",\n                )\n            )\n        else:\n            layer.selected_label = new_selected_label\n    else:\n        show_info(\n            trans._(\n                \"Calculating empty label on non-numpy array is not supported\"\n            )\n        )\n\n\n@register_label_action(\n    trans._(\"Swap between the selected label and the background label.\"),\n)\ndef swap_selected_and_background_labels(layer: Labels):\n    \"\"\"Swap between the selected label and the background label.\"\"\"\n    layer.swap_selected_and_background_labels()\n\n\n@register_label_action(\n    trans._(\"Decrease the currently selected label by one.\"),\n)\ndef decrease_label_id(layer: Labels):\n    layer.selected_label -= 1\n\n\n@register_label_action(\n    trans._(\"Increase the currently selected label by one.\"),\n)\ndef increase_label_id(layer: Labels):\n    layer.selected_label += 1\n\n\n@register_label_action(\n    trans._(\"Decrease the paint brush size by one.\"),\n    repeatable=True,\n)\ndef decrease_brush_size(layer: Labels):\n    \"\"\"Decrease the brush size\"\"\"\n    if (\n        layer.brush_size > MIN_BRUSH_SIZE\n    ):  # here we should probably add a non-hard-coded\n        # reference to the limit values of brush size?\n        layer.brush_size -= 1\n\n\n@register_label_action(\n    trans._(\"Increase the paint brush size by one.\"),\n    repeatable=True,\n)\ndef increase_brush_size(layer: Labels):\n    \"\"\"Increase the brush size\"\"\"\n    layer.brush_size += 1\n\n\n@register_layer_attr_action(\n    Labels, trans._(\"Toggle preserve labels\"), \"preserve_labels\"\n)\ndef toggle_preserve_labels(layer: Labels):\n    layer.preserve_labels = not layer.preserve_labels\n\n\n@Labels.bind_key(KeyMod.CtrlCmd | KeyCode.KeyZ, overwrite=True)\ndef undo(layer: Labels):\n    \"\"\"Undo the last paint or fill action since the view slice has changed.\"\"\"\n    layer.undo()\n\n\n@Labels.bind_key(KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyZ, overwrite=True)\ndef redo(layer: Labels):\n    \"\"\"Redo any previously undone actions.\"\"\"\n    layer.redo()\n\n\n@register_label_action(\n    trans._(\"Reset the current polygon\"),\n)\ndef reset_polygon(layer: Labels):\n    \"\"\"Reset the drawing of the current polygon.\"\"\"\n    layer._overlays[\"polygon\"].points = []\n\n\n@register_label_action(\n    trans._(\"Complete the current polygon\"),\n)\ndef complete_polygon(layer: Labels):\n    \"\"\"Complete the drawing of the current polygon.\"\"\"\n    # Because layer._overlays has type Overlay, mypy doesn't know that\n    # ._overlays[\"polygon\"] has type LabelsPolygonOverlay, so type ignore for now\n    # TODO: Improve typing of layer._overlays to fix this\n    layer._overlays[\"polygon\"].add_polygon_to_labels(layer)\n", "path": "napari/layers/labels/_labels_key_bindings.py"}]}