code: def test_stop_string(self):
      self.responses["generate_text"] = glm.GenerateTextResponse(
          candidates=[
              glm.TextCompletion(output="Hello world?"),
              glm.TextCompletion(output="Hell!"),
              glm.TextCompletion(output="I'm going to stop"),
          ]
      )
      complete = text_service.generate_text(
          prompt="Hello", stop_sequences="stop"
      )
  
      self.assertEqual(
          self.observed_requests[-1],
          glm.GenerateTextRequest(
              model="models/text-bison-001",
              prompt=glm.TextPrompt(text="Hello"),
              stop_sequences=["stop"],
          ),
      )
      # Just make sure it made it into the request object.
      self.assertEqual(
          self.observed_requests[-1].stop_sequences, ["stop"]
      )
  
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 7 for calling the UnitTests obj's underlying member method code with example usage: obj.test_stop_string() without return types