code: def get_status_from_location(self, response):
          
          self._raise_if_bad_http_status_and_method(response)
          code = response.status_code
          if code == 202:
              self.status = "InProgress"
          else:
              self.status = 'Succeeded'
              if self._is_empty(response):
                  self.resource = None
              else:
                  self.resource = self._deserialize(response)
docs: Process the latest status update retrieved from a 'location'
          header.
  
          :param requests.Response response: latest REST call response.
          :raises: BadResponse if response has no body and not status 202.