@staticmethod<EOL><INDENT>def _normalize_direction(heading: int) -> int:<DEDENT>
while heading > <NUM_LIT>:<EOL><INDENT>heading = int(heading - <NUM_LIT>)<EOL><DEDENT>while heading < <NUM_LIT:0>:<EOL><INDENT>heading = int(heading + <NUM_LIT>)<EOL><DEDENT>return heading<EOL>
Make sure that 0 < heading < 360

Args:
    heading: base heading

Returns: corrected heading