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: likInvGauss.m
    path of file: ./repos/bads/gpml-matlab-v3.6-2015-07-07/lik
    
    the code of the file until where you have to start completion: function [varargout] = likInvGauss(link, hyp, y, mu, s2, inf, i)

% likInvGauss - Inverse Gaussian likelihood function fo
    
function
function varargout = g(f,link)
  varargout = cell(nargout, 1);  % allocate the right number of output arguments
  if strcmp(link,'exp')
    [varargout{:}] = glm_invlink_exp(f);
  else
    [varargout{:}] = glm_invlink_logistic(f);
  end