def _CreateRegisterRequest(device_dict=None, auth_info_dict=None, synchronous=True,
                           version=message.MAX_SUPPORTED_MESSAGE_VERSION):
  request_dict = {'headers': {'version': version}}
  util.SetIfNotNone(request_dict, 'device', device_dict)
  util.SetIfNotNone(request_dict, 'auth_info', auth_info_dict)
  if synchronous:
    request_dict['headers']['synchronous'] = True
  return request_dict
Returns a new AUTH_REQUEST dict that has been populated with information from the
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/auth_test.py/_CreateRegisterRequest