<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_data(cls, data):
 """Create gyroscope stream from data array Parameters data : (N, 3) ndarray Data array of angular velocities (rad/s) Returns GyroStream Stream object """

        if not data.shape[1] == 3:
            raise ValueError("Gyroscope data must have shape (N, 3)")

        instance = cls()
        instance.data = data
        return instance