code: def unpack_response_from_proto(
      self, response: Message
  ) -> List[Response]:
      response_batch = []
      for r in response.response:
          response_batch.append(
              Response(
                  generated_text=r.response,
                  prompt_length=r.prompt_tokens,
                  generated_length=r.generated_tokens,
                  finish_reason=r.finish_reason,
              )
          )
      return response_batch
  
imports: from abc import ABC, abstractmethod
  from typing import Any, Dict, List, Tuple
  from google.protobuf.message import Message
  from mii.batching.data_classes import Response
  from mii.constants import TaskType
  from mii.grpc_related.proto import modelresponse_pb2
  from mii.utils import kwarg_dict_to_proto, unpack_proto_query_kwargs
label_desc: Use image node_id 6 for calling the TextGenerationMethods obj's underlying member method code with example usage: obj.unpack_response_from_proto(response) and returns: response_batch