def METHOD_NAME(self) -> bytes:
    timeout = self.serial.timeout
    with self.serial.lock:
        drain_serial(self.serial)
        self.serial.write("capture\r".encode("ascii"))
        self.serial.readline()
        self.serial.timeout = 4
        image_data = self.serial.read(
            self.screenwidth * self.screenheight * 2
        )
        self.serial.timeout = timeout
    self.serial.timeout = timeout
    return image_data