code: def test_record(self):
      self.assertDictEqual(
          postprocessors.record(
              "answer",
              example={
                  "answers": [b"a1", b"a2"],
                  "idx/passage": 1,
                  "idx/query": 2,
              },
              is_target=True,
          ),
          {"value": ["a1", "a2"], "group": (1, 2)},
      )
      self.assertDictEqual(
          postprocessors.record("answer", is_target=False),
          {"value": "answer"},
      )
  
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 5 for calling the PostprocessorsTest obj's underlying member method code with example usage: obj.test_record() without return types