<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse(cls, op):
 """Gets the enum for the op code Args: op: value of the op code (will be casted to int) Returns: The enum that matches the op code """

        for event in cls:
            if event.value == int(op):
                return event
        return None