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: pspm_find_eye.m
    path of file: ./repos/PsPM/src
    
    the code of the file until where you have to start completion: function [sts, eye, new_chantype] = pspm_find_eye(chantype)
% ● Definition
%   pspm_get_eye detects the eye location ('l', 'r', 'c', '') from an
%   eyetracker channel type
% ● Format
%   [sts, eye, new_chantype] = pspm_find_eye(chantype)
% ● Arguments
%   Input
%     chantype: the field header.chantype as returned by pspm_load_data

    
function [sts, eye, new_chantype] = pspm_find_eye(chantype)
% ● Definition
%   pspm_get_eye detects the eye location ('l', 'r', 'c', '') from an
%   eyetracker channel type
% ● Format
%   [sts, eye, new_chantype] = pspm_find_eye(chantype)
% ● Arguments
%   Input
%     chantype: the field header.chantype as returned by pspm_load_data
%   Output
%            eye:  one of {'r', 'l', 'c', ''}
%   new_chantype:  chantype with eye marker removed
% ● History
%   Introduced in PsPM version 5.1.2
%   Written in 2021 by Teddy

global settings
if isempty(settings)
  pspm_init;
end