code: def convert_to_model_response_object(
      self,
      response_object: Optional[dict] = None,
      model_response_object: Optional[ModelResponse] = None,
  ):
      try:
          ## RESPONSE OBJECT
          if response_object is None or model_response_object is None:
              raise ValueError("Error in response object format")
          choice_list = []
          for idx, choice in enumerate(response_object["choices"]):
              message = Message(
                  content=choice["text"], role="assistant"
              )
              choice = Choices(
                  finish_reason=choice["finish_reason"],
                  index=idx,
                  message=message,
              )
              choice_list.append(choice)
          model_response_object.choices = choice_list
  
          if "usage" in response_object:
              model_response_object.usage = response_object["usage"]
  
          if "id" in response_object:
              model_response_object.id = response_object["id"]
  
          if "model" in response_object:
              model_response_object.model = response_object["model"]
  
          model_response_object._hidden_params[
              "original_response"
          ] = response_object  # track original response, if users make a litellm.text_completion() request, we can return the original response
          return model_response_object
      except Exception as e:
          raise e
  
imports: from typing import Optional, Union, Any
  import types, time, json
  import httpx
  from .base import BaseLLM
  from litellm.utils import ModelResponse, Choices, Message, CustomStreamWrapper, convert_to_model_response_object, Usage
  from typing import Callable, Optional
  import aiohttp, requests
  import litellm
  from .prompt_templates.factory import prompt_factory, custom_prompt
  from openai import OpenAI, AsyncOpenAI
label_desc: Use image node_id 3 for calling the OpenAITextCompletion obj's underlying member method code with example usage: obj.convert_to_model_response_object(response_object, model_response_object) and returns: model_response_object