code: def test_detect_scenes():
      """Test that a cut is detected between concatenated red and green clips."""
      red = ColorClip((640, 480), color=(255, 0, 0)).with_duration(1)
      green = ColorClip((640, 480), color=(0, 200, 0)).with_duration(1)
      video = concatenate_videoclips([red, green])
  
      cuts, luminosities = detect_scenes(video, fps=10, logger=None)
  
      assert len(cuts) == 2
  
imports: import importlib
  import math
  import os
  import shutil
  import sys
  import numpy
  import pytest
  from moviepy.audio.AudioClip import AudioClip, CompositeAudioClip
  from moviepy.audio.fx.multiply_volume import multiply_volume
  from moviepy.audio.tools.cuts import find_audio_period
  from moviepy.video.compositing.concatenate import concatenate_videoclips
  from moviepy.video.fx.loop import loop
  from moviepy.video.fx.time_mirror import time_mirror
  from moviepy.video.io.VideoFileClip import VideoFileClip
  from moviepy.video.tools.credits import CreditsClip
  from moviepy.video.tools.cuts import FramesMatch, FramesMatches, detect_scenes, find_video_period
  from moviepy.video.tools.drawing import circle, color_gradient, color_split
  from moviepy.video.tools.interpolators import Interpolator, Trajectory
  from moviepy.video.VideoClip import BitmapClip, ColorClip, ImageClip, VideoClip
label_desc: Use image node_id 2 for calling a global function with example usage: test_detect_scenes() without return types