code: def test_multiply_speed():
      clip = BitmapClip([["A"], ["B"], ["C"], ["D"]], fps=1)
  
      clip1 = multiply_speed(clip, 0.5)  # 1/2x speed
      target1 = BitmapClip(
          [["A"], ["A"], ["B"], ["B"], ["C"], ["C"], ["D"], ["D"]],
          fps=1,
      )
      assert clip1 == target1
  
      clip2 = multiply_speed(clip, final_duration=8)  # 1/2x speed
      target2 = BitmapClip(
          [["A"], ["A"], ["B"], ["B"], ["C"], ["C"], ["D"], ["D"]],
          fps=1,
      )
      assert clip2 == target2
  
      clip3 = multiply_speed(clip, final_duration=12)  # 1/2x speed
      target3 = BitmapClip(
          [
              ["A"],
              ["A"],
              ["A"],
              ["B"],
              ["B"],
              ["B"],
              ["C"],
              ["C"],
              ["C"],
              ["D"],
              ["D"],
              ["D"],
          ],
          fps=1,
      )
      assert clip3 == target3
  
      clip4 = multiply_speed(clip, 2)  # 2x speed
      target4 = BitmapClip([["A"], ["C"]], fps=1)
      assert clip4 == target4
  
      clip5 = multiply_speed(clip, final_duration=2)  # 2x speed
      target5 = BitmapClip([["A"], ["C"]], fps=1)
      assert clip5 == target5
  
      clip6 = multiply_speed(clip, 4)  # 4x speed
      target6 = BitmapClip([["A"]], fps=1)
      assert (
          clip6 == target6
      ), f"{clip6.duration} {target6.duration} {clip6.fps} {target6.fps}"
  
imports: import decimal
  import importlib
  import math
  import numbers
  import os
  import random
  import sys
  import numpy
  import pytest
  from moviepy import AudioClip, AudioFileClip, BitmapClip, ColorClip, VideoClip, VideoFileClip
  from moviepy.audio.fx import audio_delay, audio_fadein, audio_fadeout, audio_normalize, multiply_stereo_volume, multiply_volume
  from moviepy.tools import convert_to_seconds
  from moviepy.video.fx import blackwhite, crop, even_size, fadein, fadeout, freeze, freeze_region, invert_colors, loop, lum_contrast, make_loopable, margin, mask_and, mask_or, mirror_x, mirror_y, multiply_color, multiply_speed, resize, rotate, time_mirror, time_symmetrize
label_desc: Use image node_id 29 for calling a global function with example usage: test_multiply_speed() without return types