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: create_and_return_hrf.m
    path of file: ./repos/advanced_fMRI_course/Practical#2
    
    the code of the file until where you have to start completion: function [hrf] = create_and_return_hrf(hrf_beta, temporal_resolution)

    % Temporal resolution in seconds of the informed basis set you are going to create
    xBF.dt = temporal_resolution;

    
function [hrf] = create_and_return_hrf(hrf_beta, temporal_resolution)

    % Temporal resolution in seconds of the informed basis set you are going to create
    xBF.dt = temporal_resolution;
    xBF.name = 'hrf (with time and dispersion derivatives)';

    % Length of the HRF in seconds
    xBF.length = 32;
    xBF.order = 1;

    % Creates the informed basis set
    xBF = spm_get_bf(xBF);

    % HRF + Temporal derivative of the HRF + Dispersion derivative of the HRF
    hrf = hrf_beta(1) * xBF.bf(:, 1) + ...
           hrf_beta(2) * xBF.bf(:, 2) + ...
           hrf_beta(3) * xBF.bf(:, 3);

end