Raspberry Pi - Camera Module
Identify the error in this code snippet:
from picamera2 import Picamera2
picam2 = Picamera2()
picam2.capture_file('image.jpg')
picam2.stop()