code: def test_filters(self):
      self.responses["generate_text"] = glm.GenerateTextResponse(
          candidates=[{"output": "hello"}],
          filters=[
              {
                  "reason": safety_types.BlockedReason.SAFETY,
                  "message": "not safe",
              }
          ],
      )
  
      response = text_service.generate_text(prompt="do filters work?")
      self.assertIsInstance(
          response.filters[0]["reason"], safety_types.BlockedReason
      )
      self.assertEqual(
          response.filters[0]["reason"],
          safety_types.BlockedReason.SAFETY,
      )
  
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 9 for calling the UnitTests obj's underlying member method code with example usage: obj.test_filters() without return types