code: def calculate_angle(fps, rotation_speed, frames):
      """Calculates rotation angle achieved by applying the rotation_speed."""
      time_seconds = TIME_DIALATION * frames / fps
  
      angle = (
          rotation_speed
          * time_seconds
          * PIXELS_PER_FRAME_TO_DEG_PER_SECOND
      )
  
      # Angles in the engine are converted to shorts to maintain determinism.
      short = int(angle * (65536.0 / 360.0) + 0.5) % 65536
      angle0_360 = short * 360.0 / 65536.0
  
      # Return angle normalised to [-180, 180)
      return angle0_360 if angle0_360 < 180 else angle0_360 - 360
  
file_path: lab/python/tests/utils/math_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
label_desc: Use image node_id 1 for calling a global function with example usage: calculate_angle(fps, rotation_speed, frames) and returns: unknown