def METHOD_NAME():
    # Construct the path items
    # This *could* be done outside of this create() function (and thus outside of the main thread),
    # but (1) that seems to cause crashes on shutdown,
    # and (2) performance gets worse, not better.
    path_items = generate_path_items_for_labels(
        self._layer.pen_table, self._layer.default_pen, array_data, None, isClickable=self._layer._isClickable
    )
    # All SegmentationEdgesItem(s) associated with this layer will share a common pen table.
    # They react immediately when the pen table is updated.
    graphics_item = SegmentationEdgesItem(
        path_items,
        self._layer.pen_table,
        self._layer.default_pen,
        hoverIdChanged=self._hoverIdChanged,
        isClickable=self._layer._isClickable,
    )
    # When the item is clicked, the layer is notified.
    graphics_item.edgeClicked.connect(self._layer.handle_edge_clicked)
    graphics_item.edgeSwiped.connect(self._layer.handle_edge_swiped)
    return graphics_item