code: def postprocess_session(self, session_id, args, response):
      generated_text = response[0][0]["generated_text"]
      self.session_context[session_id] = generated_text
      response[0][0]["generated_text"] = generated_text[
          len(args[0][0]) :
      ]
      return response
  
imports: import uuid
  from abc import ABC, abstractmethod
  from transformers import Conversation
  from mii.legacy.constants import TaskType
  from mii.legacy.grpc_related.proto import legacymodelresponse_pb2
  from mii.legacy.utils import kwarg_dict_to_proto, unpack_proto_query_kwargs
  from mii.legacy.models.utils import ImageResponse
label_desc: Use image node_id 6 for calling the TextGenerationMethods obj's underlying member method code with example usage: obj.postprocess_session(session_id, args, response) and returns: response