def METHOD_NAME(self, function, *args, **kwargs):
    self.counter += 1
    if self.counter == 1:
        return {constants._Constants.EnableMultipleWritableLocations: self.EnableMultipleWritableLocations}, {}
    else:
        if len(args) > 0:
            self.last_headers.append(HttpHeaders.AllowTentativeWrites in args[4].headers
                                     and args[4].headers[HttpHeaders.AllowTentativeWrites] == 'true')
        return self.OriginalExecuteFunction(function, *args, **kwargs)