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: getEnvironment.m
    path of file: ./repos/matlab2tikz/src/private
    
    the code of the file until where you have to start completion: function [env, versionString] = getEnvironment()
% Determine environment (Octave, MATLAB) and version string
% TODO: Unify private `getEnvironment` functions
    persistent cache

    if isempty(cache)
        isOctave = exist('OCTAVE_VERSION', 'builtin') ~= 0;
        if isOctave
            env = 'Octave';
            versionString = OCTAVE_VERSION;

    
function [env, versionString] = getEnvironment()
% Determine environment (Octave, MATLAB) and version string
% TODO: Unify private `getEnvironment` functions
    persistent cache

    if isempty(cache)
        isOctave = exist('OCTAVE_VERSION', 'builtin') ~= 0;
        if isOctave
            env = 'Octave';
            versionString = OCTAVE_VERSION;
        else
            env = 'MATLAB';
            vData = ver(env);
            versionString = vData.Version;
        end