code: def should_do_final_get(self):
          
          return ((self.async_url or not self.resource) and self.method in {'PUT', 'PATCH'}) \
                  or (self.lro_options['final-state-via'] == _LOCATION_FINAL_STATE and self.location_url and self.async_url and self.method == 'POST')
docs: Check whether the polling should end doing a final GET.
  
          :param requests.Response response: latest REST call response.
          :rtype: bool