code: def test_count_message_tokens(self, model):
      self.responses["get_tuned_model"] = glm.TunedModel(
          name="tunedModels/bipedal-pangolin-001",
          base_model="models/text-bison-001",
      )
      self.responses["count_text_tokens"] = glm.CountTextTokensResponse(
          token_count=7
      )
  
      response = text_service.count_text_tokens(
          model, "Tell me a story about a magic backpack."
      )
      self.assertEqual({"token_count": 7}, response)
  
      should_look_up_model = isinstance(
          model, str
      ) and model.startswith("tunedModels/")
      if should_look_up_model:
          self.assertLen(self.observed_requests, 2)
          self.assertEqual(
              self.observed_requests[0],
              glm.GetTunedModelRequest(
                  name="tunedModels/bipedal-pangolin-001"
              ),
          )
  
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 13 for calling the UnitTests obj's underlying member method code with example usage: obj.test_count_message_tokens(model) without return types