def _set_next_host_location(self, context):
if len(context.request.host_locations) > <NUM_LIT:1>:<EOL><INDENT>if context.location_mode == LocationMode.PRIMARY:<EOL><INDENT>context.location_mode = LocationMode.SECONDARY<EOL><DEDENT>else:<EOL><INDENT>context.location_mode = LocationMode.PRIMARY<EOL><DEDENT>context.request.host = context.request.host_locations.get(context.location_mode)<EOL><DEDENT>
A function which sets the next host location on the request, if applicable. 

:param ~azure.storage.models.RetryContext context: 
    The retry context containing the previous host location and the request 
    to evaluate and possibly modify.