code: def test_wsc_simple(self):
      self.assertEqual(
          postprocessors.wsc_simple(
              "blah", example={"label": 1}, is_target=True
          ),
          1,
      )
      self.assertEqual(
          postprocessors.wsc_simple(
              "blah", example={"label": -1}, is_target=True
          ),
          -1,
      )
  
      self.assertEqual(
          postprocessors.wsc_simple(
              "potato",
              example={"targets_pretokenized": b"turnip"},
              is_target=False,
          ),
          0,
      )
      self.assertEqual(
          postprocessors.wsc_simple(
              "turnip",
              example={"targets_pretokenized": b"turnip"},
              is_target=False,
          ),
          1,
      )
      self.assertEqual(
          postprocessors.wsc_simple(
              "the cat",
              example={"targets_pretokenized": b"cat"},
              is_target=False,
          ),
          1,
      )
      self.assertEqual(
          postprocessors.wsc_simple(
              "Bob's hat",
              example={"targets_pretokenized": b"Bob"},
              is_target=False,
          ),
          0,
      )
      self.assertEqual(
          postprocessors.wsc_simple(
              "Bob's hat",
              example={"targets_pretokenized": b"Bob's hat"},
              is_target=False,
          ),
          1,
      )
      self.assertEqual(
          postprocessors.wsc_simple(
              "potato",
              example={"targets_pretokenized": b"Potato"},
              is_target=False,
          ),
          1,
      )
      self.assertEqual(
          postprocessors.wsc_simple(
              "a potato",
              example={"targets_pretokenized": b"my potato"},
              is_target=False,
          ),
          1,
      )
      self.assertEqual(
          postprocessors.wsc_simple(
              "fuzzy bunny",
              example={"targets_pretokenized": b"fuzzy hungry bunny"},
              is_target=False,
          ),
          1,
      )
      self.assertEqual(
          postprocessors.wsc_simple(
              "",
              example={"targets_pretokenized": b"cat"},
              is_target=False,
          ),
          -1,
      )
      self.assertEqual(
          postprocessors.wsc_simple(
              "a this",
              example={"targets_pretokenized": b"cat"},
              is_target=False,
          ),
          -1,
      )
  
file_path: text-to-text-transfer-transformer/t5/data/postprocessors_test.py
imports: from absl.testing import absltest
  import numpy
  from t5.data import postprocessors
label_desc: Use image node_id 8 for calling the PostprocessorsTest obj's underlying member method code with example usage: obj.test_wsc_simple() without return types