def METHOD_NAME(self):
    for mime_type, image_data in self._image_generator():
        yield (
            b"--frame\r\nContent-Type: "
            + mime_type.encode("utf-8")
            + b"\r\n\r\n"
            + image_data
            + b"\r\n"
        )