code: def _mock_embeddings_response(num_texts):
      return _MockResponse(
          200,
          {
              "object": "list",
              "data": [
                  {
                      "object": "embedding",
                      "embedding": [
                          0.0,
                      ],
                      "index": i,
                  }
                  for i in range(num_texts)
              ],
              "model": "text-embedding-ada-002",
              "usage": {"prompt_tokens": 8, "total_tokens": 8},
          },
      )
  
imports: import json
  import os
  import time
  from contextlib import contextmanager
  from enum import Enum
  from typing import NamedTuple, Optional
  from unittest import mock
  import requests
  import mlflow
label_desc: Use image node_id 6 for calling a global function with example usage: _mock_embeddings_response(num_texts) and returns: _MockResponse