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: size.m
    path of file: ./repos/chebfun/@spherefunv
    
    the code of the file until where you have to start completion: function varargout = size(F, dim) 
%SIZE   Size of a SPHEREFUNV object
%   D = SIZE(F) returns a three-element vector D = [K, M, N]. If F is a column
%   SPHEREFUNV object then K is the number of components in F, N and M are INF.
%   If F is a row vector then K and M are INF and N is the number of components
%   of F.
%
%   [K, M, N] = SIZE(F) returns the dimensions of F as separate output 
%   variables.
%
%   D = SIZE(F, DIM) returns the dimensions specified by the dimension DIM.

    
function varargout = size(F, dim) 
%SIZE   Size of a SPHEREFUNV object
%   D = SIZE(F) returns a three-element vector D = [K, M, N]. If F is a column
%   SPHEREFUNV object then K is the number of components in F, N and M are INF.
%   If F is a row vector then K and M are INF and N is the number of components
%   of F.
%
%   [K, M, N] = SIZE(F) returns the dimensions of F as separate output 
%   variables.
%
%   D = SIZE(F, DIM) returns the dimensions specified by the dimension DIM.
%

% Copyright 2017 by The University of Oxford and The Chebfun Developers.
% See http://www.chebfun.org/ for Chebfun information.

% Empty check: 
if ( isempty(F) ) 
    varargout = {[], []}; 
    return
end