Yaw from Quaternion

Hi,

How would one calculate the yaw angle of the vehicle using its quaternion?

Please use this function: https://github.com/nutonomy/nuscenes-devkit/blob/master/python-sdk/nuscenes/eval/detection/utils.py#L162