code: def _stereo_factor_getter(clip_duration, nchannels):
      def getter(t, duration):
          factor = np.minimum(1.0 * (clip_duration - t) / duration, 1)
          return np.array([factor for _ in range(nchannels)]).T
  
      return getter
  
imports: import numpy
  from moviepy.decorators import audio_video_fx, convert_parameter_to_seconds, requires_duration
label_desc: Use image node_id 2 for calling a global function with example usage: _stereo_factor_getter(clip_duration, nchannels) and returns: getter, np