code: def test_generate_embeddings(self, model, text):
      self.responses["embed_text"] = glm.EmbedTextResponse(
          embedding=glm.Embedding(value=[1, 2, 3])
      )
  
      emb = text_service.generate_embeddings(model=model, text=text)
  
      self.assertIsInstance(emb, dict)
      self.assertEqual(
          self.observed_requests[-1],
          glm.EmbedTextRequest(model=model, text=text),
      )
      self.assertIsInstance(emb["embedding"][0], float)
  
imports: import copy
  import math
  import unittest
  import unittest.mock
  import google.ai.generativelanguage
  from google.generativeai import text
  from google.generativeai import client
  from google.generativeai.types import safety_types
  from google.generativeai.types import model_types
  from absl.testing import absltest
  from absl.testing import parameterized
label_desc: Use image node_id 4 for calling the UnitTests obj's underlying member method code with example usage: obj.test_generate_embeddings(model, text) without return types