@classmethod<EOL><INDENT>def _missing_(cls, value):<DEDENT>
if not (isinstance(value, int) and <NUM_LIT> <= value <= <NUM_LIT>):<EOL><INDENT>raise ValueError('<STR_LIT>' % (value, cls.__name__))<EOL><DEDENT>if <NUM_LIT> <= value <= <NUM_LIT>:<EOL><INDENT>extend_enum(cls, '<STR_LIT>' % hex(value)[<NUM_LIT:2>:].upper().zfill(<NUM_LIT:4>), value)<EOL>return cls(value)<EOL><DEDENT>if <NUM_LIT> <= value <= <NUM_LIT>:<EOL><INDENT>extend_enum(cls, '<STR_LIT>' % hex(value)[<NUM_LIT:2>:].upper().zfill(<NUM_LIT:4>), value)<EOL>return cls(value)<EOL><DEDENT>if <NUM_LIT> <= value <= <NUM_LIT>:<EOL><INDENT>extend_enum(cls, '<STR_LIT>' % hex(value)[<NUM_LIT:2>:].upper().zfill(<NUM_LIT:4>), value)<EOL>return cls(value)<EOL><DEDENT>if <NUM_LIT> <= value <= <NUM_LIT>:<EOL><INDENT>extend_enum(cls, '<STR_LIT>' % hex(value)[<NUM_LIT:2>:].upper().zfill(<NUM_LIT:4>), value)<EOL>return cls(value)<EOL><DEDENT>if <NUM_LIT> <= value <= <NUM_LIT>:<EOL><INDENT>extend_enum(cls, '<STR_LIT>' % hex(value)[<NUM_LIT:2>:].upper().zfill(<NUM_LIT:4>), value)<EOL>return cls(value)<EOL><DEDENT>super()._missing_(value)<EOL>
Lookup function used when value is not found.