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: cfg_findspec.m
    path of file: ./repos/bspm/thirdparty/spm12/matlabbatch
    
    the code of the file until where you have to start completion: function spec = cfg_findspec(cellspec)

    
function spec = cfg_findspec(cellspec)

% function spec = cfg_findspec(cellspec)
% Create a find specification. cellspec should contain a cell array of
% cells, each of them containing name/value pairs that will be combined
% into a struct suitable for e.g. @cfg_item/match and @cfg_item/list. 
% These methods will be used to e.g. select items in a configuration tree or
% to match depend