You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ConnectedComponentsLabeling.m
    path of file: ./repos/ImageM/ImageM/+imagem/+actions/+process/+binary
    
    the code of the file until where you have to start completion: classdef ConnectedComponentsLabeling < imagem.actions.BinaryImageAction
% Connected Components Labeling of a binary image.
%
%   Class ConnectedComponentsLabeling
%
%   Example

    
function run(obj, frame) %#ok<INUSL>
        
        % get handle to current doc
        doc = currentDoc(frame);
        
        lbl = componentLabeling(doc.Image);
        
        newDoc = addImageDocument(frame, lbl);
        
        % history
        string = sprintf('%s = componentLabeling(%s);\n', newDoc.Tag, doc.Tag);
        addToHistory(frame, string);
    end