@staticmethod<EOL><INDENT>def from_raw(raw):<DEDENT>
if not isinstance(raw, bytes):<EOL><INDENT>raise PyVLXException("<STR_LIT>")<EOL><DEDENT>if len(raw) != <NUM_LIT:2>:<EOL><INDENT>raise PyVLXException("<STR_LIT>")<EOL><DEDENT>if raw != Position.from_int(Position.CURRENT_POSITION) andraw != Position.from_int(Position.UNKNOWN_VALUE) andPosition.to_int(raw) > Position.MAX:<EOL><INDENT>raise PyVLXException("<STR_LIT>", raw=raw)<EOL><DEDENT>return raw<EOL>
Test if raw packets are valid for initialization of Position.