code: def crossfadeout(clip, duration):
      """Makes the clip disappear progressively, over ``duration`` seconds.
      Only works when the clip is included in a CompositeVideoClip.
      """
      clip.mask.duration = clip.duration
      new_clip = clip.copy()
      new_clip.mask = clip.mask.fx(fadeout, duration)
      return new_clip
  
imports: from moviepy.decorators import add_mask_if_none, requires_duration
  from moviepy.video.fx.fadein import fadein
  from moviepy.video.fx.fadeout import fadeout
label_desc: Use image node_id 2 for calling a global function with example usage: crossfadeout(clip, duration) and returns: new_clip