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: cnn_vgg_faces.m
    path of file: ./repos/cnn-for-image-retrieval/matconvnet-1.0-beta17/examples/vggfaces
    
    the code of the file until where you have to start completion: function cnn_vgg_faces()
%CNN_VGG_FACES  Demonstrates how to use VGG-Face

run matlab/vl_setupnn
modelPath = 'data/models/vgg-face.mat' ;

if ~exist(modelPath)
  mkdir(fileparts(modelPath)) ;

    
function cnn_vgg_faces()
%CNN_VGG_FACES  Demonstrates how to use VGG-Face

run matlab/vl_setupnn
modelPath = 'data/models/vgg-face.mat' ;

if ~exist(modelPath)
  mkdir(fileparts(modelPath)) ;
  urlwrite(...
  'http://www.vlfeat.org/matconvnet/models/vgg-face.mat', ...
    modelPath) ;
end

net = load('data/models/vgg-face.mat') ;

im = imread('https://upload.wikimedia.org/wikipedia/commons/4/4a/Aamir_Khan_March_2015.jpg') ;
im = im(1:250,:,:) ; % crop
im_ = single(im) ; % note: 255 range
im_ = imresize(im_, net.meta.normalization.imageSize(1:2)) ;
im_ = bsxfun(@minus,im_,net.meta.normalization.averageImage) ;
res = vl_simplenn(net, im_) ;

% show the classification result
scores = squeeze(gather(res(end