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: twilight.m
    path of file: ./repos/fieldtrip/external/matplotlib
    
    the code of the file until where you have to start completion: function map = twilight(N)
% Perceptually uniform cyclic colormap from MatPlotLib.
%
% Copyright (c) 2015 Bastian Bechtold
% Copyright (c) 2017-2019 Stephen Cobeldick
%
%%% Syntax:
%  map = twilight

    
function map = twilight(N)
% Perceptually uniform cyclic colormap from MatPlotLib.
%
% Copyright (c) 2015 Bastian Bechtold
% Copyright (c) 2017-2019 Stephen Cobeldick
%
%%% Syntax:
%  map = twilight
%  map = twilight(N)
%
% Colormap designed by Bastian Bechtold.
%
% Cyclic colormaps are designed for plotting data that repeats, therefore the
% colormap loops around (the first and last colors tend