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: minimizeAwTV.m
    path of file: ./repos/TIGRE/MATLAB/Utilities
    
    the code of the file until where you have to start completion: function img=minimizeAwTV(img,varargin)
%MINIMIZEAWTV MATLAB wrapper for the CUDA steepest descend minimization of 
% adaptive-weighted TV norm. Note that this does not
    
function [gpuids]=parse_inputs(varargin)
    %fprintf('parse_inputs0(varargin (%d))\n', length(varargin));
    if isempty(varargin)
        gpuids = GpuIds();
    else
        % create input parser
        p=inputParser;
        % add optional parameters
        addParameter(p,'gpuids', GpuIds());
        %execute
        parse(p,varargin{:});
        %extract
        gpuids=p.Results.gpuids;
    end