def get_frame_from_stream(self):
        """
        Get frame from the stream

        Returns:
            frame

        """
        if self.frame_gen is None:
            self.frame_gen = self.get_frames()
        return self.frame_gen.send(None)

        Get frame from the stream

        Returns:
            frame

        
airtest/core/android/cap_methods/javacap.py