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: mne_read_inverse_operator.m
    path of file: ./repos/bspm/thirdparty/spm12/external/mne
    
    the code of the file until where you have to start completion: function [inv] = mne_read_inverse_operator
    
function [tag] = find_tag(node,findkind)

        for p = 1:node.nent
            if node.dir(p).kind == findkind
                tag = fiff_read_tag(fid,node.dir(p).pos);
                return;
            end