Raspberry Pi - Camera Module
Identify the error in this code snippet for recording video on Raspberry Pi:
from picamera import PiCamera
import time
camera = PiCamera()
camera.start_recording('video.h264')
time.wait(3)
camera.stop_recording()