code: def test_blit_with_opacity():
      # has one second R, one second G, one second B
      size = (2, 2)
      clip1 = (
          ColorClip(size, color=(255, 0, 0), duration=1)
          + ColorClip(size, color=(0, 255, 0), duration=1)
          + ColorClip(size, color=(0, 0, 255), duration=1)
      )
  
      # overlay green at half opacity during first 2 sec
      clip2 = ColorClip(
          size, color=(0, 255, 0), duration=2
      ).with_opacity(0.5)
      composite = CompositeVideoClip([clip1, clip2])
      bt = ClipPixelTest(composite)
  
      # red + 50% green
      bt.expect_color_at(0.5, (0x7F, 0x7F, 0x00))
      # green + 50% green
      bt.expect_color_at(1.5, (0x00, 0xFF, 0x00))
      # blue is after 2s, so keep untouched
      bt.expect_color_at(2.5, (0x00, 0x00, 0xFF))
  
file_path: moviepy/tests/test_compositing.py
imports: import os
  import numpy
  import pytest
  from moviepy.video.compositing.CompositeVideoClip import CompositeVideoClip, clips_array
  from moviepy.video.compositing.concatenate import concatenate_videoclips
  from moviepy.video.compositing.transitions import slide_in, slide_out
  from moviepy.video.fx.resize import resize
  from moviepy.video.VideoClip import BitmapClip, ColorClip
label_desc: Use image node_id 5 for calling a global function with example usage: test_blit_with_opacity() without return types