code: def imdisplay(imarray, screen=None):
      """Splashes the given image array on the given pygame screen."""
      a = pg.surfarray.make_surface(imarray.swapaxes(0, 1))
      if screen is None:
          screen = pg.display.set_mode(imarray.shape[:2][::-1])
      screen.blit(a, (0, 0))
      pg.display.flip()
  
file_path: moviepy/moviepy/video/io/preview.py
imports: import threading
  import time
  import numpy
  import pygame
  from moviepy.decorators import convert_masks_to_RGB, convert_parameter_to_seconds, requires_duration
  from moviepy.video.compositing.CompositeVideoClip import CompositeVideoClip
label_desc: Use image node_id 1 for calling a global function with example usage: imdisplay(imarray, screen) without return types