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: genslblockfriction.m
    path of file: ./repos/robotics-toolbox-matlab/@CodeGenerator
    
    the code of the file until where you have to start completion: %CODEGENERATOR.GENSLBLOCKFRICTION Generate Simulink block for joint friction

    
function [ F ] = genslblockfriction( CGen )

%% Open or create block library
bdclose('all')                                                              % avoid problems with previously loaded libraries
load_system('simulink');
if ~(exist([CGen.slibpath,simulinkext]) == 2)                                  % Create new block library if none exists
 CGen.createnewblocklibrary;
end