def to_text(value):
 if ((value < 0) or (value > 65535)):
  raise ValueError('type must be between >= 0 and <= 65535')
 text = _by_value.get(value)
 if (text is None):
  text = ('TYPE' + `value`)
 return text

def to_text ( value ) : if ( ( value < 0 ) or ( value > 65535 ) ) : raise ValueError ( 'type must be between >= 0 and <= 65535' ) text = _by_value . get ( value ) if ( text is None ) : text = ( 'TYPE' + ` value ` ) return text
convert an opcode to text .