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: process_cohere2_time_2021.m
    path of file: ./repos/brainstorm3/toolbox/process/deprecated
    
    the code of the file until where you have to start completion: function varargout = process_cohere2_time_2021( varargin )
% PROCESS_COHERE2_TIME_2021: Compute the time-resolved coherence between all the pairs of signals, in one file.

% @======================================
    
function OutputFiles = Run(sProcess, sInputA, sInputB) %#ok<DEFNU>
    % Initialize returned values
    OutputFiles = {};
    % Output mode 2021: Forcing the average cross-spectra of input files (one output file)
    sProcess.options.outputmode.Value = 'avgcoh';
    % Input options
    OPTIONS = process_corr2('GetConnectOptions', sProcess, sInputA, sInputB);
    if isempty(OPTIONS)
        return
    end