def METHOD_NAME(self, request, *args, **kwargs):
    """Replay and deserialize GCP API call answers.
    Args:
        self (object): Self of the caller.
        request (HttpRequest): The HttpRequest object to execute.
        **args (list): Additional args to pass through to function.
        **kwargs (dict): Additional key word args to pass through to
            function.
    Returns:
        object: The result object from the previous recording.
    Raises:
        Exception: Any exception raised during the previous recording.
    """
    replay_file = os.environ.get(REPLAY_ENVIRONMENT_VAR, None)
    if not replay_file:
        return f(self, request, *args, **kwargs)
    if not requests:
        LOGGER.info('Loading replay file %s.', replay_file)
        with open(replay_file, 'rb') as infile:
            unpickler = pickle.Unpickler(infile)
            requests.update(unpickler.load())
    request_key = _key_from_request(request)
    if request_key in requests:
        results = requests[request_key]
        # Pull the first result from the queue.
        obj = results.popleft()
        if obj['raised']:
            raise obj['result'](*obj['exception_args'])
        return obj['result']
    else:
        LOGGER.warning(
            'Request URI %s with body %s not found in recorded '
            'requests, executing live http request instead.',
            request.uri, request.body)
        return f(self, request, *args, **kwargs)