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: generate_python_command.m
    path of file: ./repos/toolkit-legacy/tracker
    
    the code of the file until where you have to start completion: function command = generate_python_command(script, paths)

    
function command = generate_python_command(script, paths)
% generate_python_command Generate command line for a Python tracker
%
% This function generates the appropritate command string that will 
% run the python executable and execute the given script that includes your
% tracker implementation.
%
% Input:
% - script (string): Name of the tracker script to be executed.
% - paths (cell): An array of strings that denote directories to be added to Matlab path.
%
% Output:
% - command (string): Generated command string.
%

trax_python = get_global_variable('trax_python');
python_exec = get_global_variable('python');

% If path to python trax implementation is set then we attempt to export it to tracker
if ~isempty(trax_python)
    paths = cat(1, {trax_python}, paths(:));
end