code: def test_batch_embed_contents(self, batch_size):
      text = ["What are you?"]
      texts = text * batch_size
      emb = embedding.embed_content(
          model=DEFAULT_EMB_MODEL, content=texts
      )
  
      self.assertIsInstance(emb, dict)
  
      # Check that the list has the right length.
      self.assertIsInstance(emb["embedding"][0], list)
      self.assertLen(emb["embedding"], len(texts))
  
      # Check that the right number of requests were sent.
      self.assertLen(
          self.observed_requests,
          math.ceil(len(texts) / embedding.EMBEDDING_MAX_BATCH_SIZE),
      )
  
file_path: generative-ai-python/tests/test_embedding.py
imports: import copy
  import math
  import unittest
  import unittest.mock
  import google.ai.generativelanguage
  from google.generativeai import embedding
  from google.generativeai import client
  from absl.testing import absltest
  from absl.testing import parameterized
label_desc: Use image node_id 3 for calling the UnitTests obj's underlying member method code with example usage: obj.test_batch_embed_contents(batch_size) without return types