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: DATA_WID_data.m
    path of file: ./repos/spm/toolbox/DEM
    
    the code of the file until where you have to start completion: function D = DATA_WID_data
% Data retrieval function for COVID modelling
% FORMAT D = DATA_WID_data

    
function D = DATA_WID_data
% Data retrieval function for COVID modelling
% FORMAT D = DATA_WID_data
%
% n   - number of countries to retain [default: n]
%
% This auxiliary routine retrieves data from comma separated data files
%__________________________________________________________________________
% Copyright (C) 2020 Wellcome Centre for Human Neuroimaging

% Karl Friston
% Copyright (C) 2008-2022 Wellcome Centre for Human Neuroimaging


% web options
%--------------------------------------------------------------------------
options = weboptions;
options.Timeout = 20;

% download data and write to CSV files
%--------------------------------------------------------------------------
url = 'https://covid.ourworldindata.org/data/owid-covid-data.csv';
writetable(webread(url,options),'owid-covid-data.csv');

% load data
%--------------------------------------------------------------------------
try
    D  = readtable('owid-covid-data.csv');
catch
    clc, warning('Please load owid-covid-data files into the current working directory')
    return;
end