def encode_method_selection_message(version, method):
 return struct.pack('!BB', version, method)

def encode_method_selection_message ( version , method ) : return struct . pack ( '!BB' , version , method )
serialise a method selection message .