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: ft_platform_supports.m
    path of file: ./repos/fecgsyn/subfunctions/data-generation/libs/fieldtrip/fileio/private
    
    the code of the file until where you have to start completion: function tf = ft_platform_supports(what,varargin)

% FT_PLATFORM_SUPPORTS returns a boolean indicating whether the current platform
% supports a specific capability
%
% Use as
%   status = ft_platform_supports(what)
% or
%   status = ft_platform_supports('matlabversion', min_version, max_version)
%
% The following values are allowed for the 'what' parameter, which means means that

    
function

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SUBFUNCTION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function tf = has_all_functions_in_dir(in_dir, exclude_mfiles)
% returns true if all functions in in_dir are already provided by the platform
m_files = dir(fullfile(in_dir,'*.m'));
n = numel(m_files);

for k = 1:n
  m_filename = m_files(k).name;
  if isempty(which(m_filename)) && isempty(strmatch(m_filename,exclude_mfiles))
    tf = false;
    return;
  end