code: def pack_response_to_proto(
      self, responses: List[Response]
  ) -> Message:
      proto_responses = []
      for r in responses:
          proto_responses.append(
              modelresponse_pb2.SingleGenerationReply(
                  response=r.generated_text,
                  finish_reason=str(r.finish_reason.value),
                  prompt_tokens=r.prompt_length,
                  generated_tokens=r.generated_length,
                  time_taken=-1,
                  model_time_taken=-1,
              )
          )
  
      return modelresponse_pb2.MultiGenerationReply(
          response=proto_responses,
      )
  
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 5 for calling the TextGenerationMethods obj's underlying member method code with example usage: obj.pack_response_to_proto(responses) and returns: modelresponse_pb2