def METHOD_NAME():
    pygame.init()
    window_size = (modemapping[mode]["width"], modemapping[mode]["height"])
    screen = pygame.display.set_mode(window_size)
    # display the animation
    done = False
    i = 0
    while not done:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                done = True
        screen.blit(animate(), (0, 0))
        pygame.display.flip()
    # quit Pygame
    pygame.quit()
    status = camera1.stop()