#NEWLINE# def _CreateRegisterRequest( device_dict = None , auth_info_dict = None , synchronous = True , version = message . MAX_SUPPORTED_MESSAGE_VERSION ) : #NEWLINE# #INDENT# 'Returns a new AUTH_REQUEST dict that has been populated with information from the\n  specified dicts.\n  ' #NEWLINE# request_dict = { #NEWLINE# #INDENT# 'headers' : { #NEWLINE# #INDENT# 'version' : request_dict , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# util . SetIfNotNone ( request_dict , 'device' , device_dict ) #NEWLINE# util . SetIfNotNone ( request_dict , 'auth_info' , auth_info_dict ) #NEWLINE# if synchronous : #NEWLINE# #INDENT# request_dict [ 'headers' ] [ 'synchronous' ] = True #NEWLINE# #UNINDENT# return request_dict