def to_full_uuid (uuid):
if not is_valid_uuid (uuid): raise ValueError ("<STR_LIT>")<EOL>if len (uuid) == <NUM_LIT:4>:<EOL><INDENT>return "<STR_LIT>" % uuid<EOL><DEDENT>elif len (uuid) == <NUM_LIT:8>:<EOL><INDENT>return "<STR_LIT>" % uuid<EOL><DEDENT>else:<EOL><INDENT>return uuid<EOL><DEDENT>
converts a short 16-bit or 32-bit reserved UUID to a full 128-bit Bluetooth
UUID.