code: def test_process_single_mathqa_example_0(self):
      # This is the first problem in the MathQA dataset.
      example = {
          "Problem": "the banker ' s gain of a certain sum due 3 years hence at 10 % "
          "per annum is rs . 36 . what is the present worth ?",
          "Rationale": '"explanation : t = 3 years r = 10 % td = ( bg × 100 ) / tr = ( '
          "36 × 100 ) / ( 3 × 10 ) = 12 × 10 = rs . 120 td = ( pw × tr )"
          " / 100 ⇒ 120 = ( pw × 3 × 10 ) / 100 ⇒ 1200 = pw × 3 pw = "
          '1200 / 3 = rs . 400 answer : option a"',
          "options": "a ) rs . 400 , b ) rs . 300 , c ) rs . 500 , d ) rs . 350 , e ) "
          "none of these",
          "correct": "a",
          "annotated_formula": "divide(multiply(const_100, divide(multiply(36, const_100), "
          "multiply(3, 10))), multiply(3, 10))",
          "linear_formula": "multiply(n2,const_100)|multiply(n0,n1)|divide(#0,#1)|multiply(#2,const_100)|divide(#3,#1)|",
          "category": "gain",
      }
  
      (
          answer_num,
          python_result,
          python_program,
          list_op,
          list_num,
      ) = tf_inputs.process_single_mathqa_example(example)
      self.assertEqual(
          answer_num, 400
      )  # we know it, because correct answer is a)
      self.assertEqual(
          python_result, [3600.0, 30.0, 120.0, 12000.0, 400.0]
      )
  
      self.assertEqual(
          python_program,
          [
              "t0 = n2 * 100.0",
              "t1 = n0 * n1",
              "t2 = t0 / t1",
              "t3 = t2 * 100.0",
              "t4 = t3 / t1",
          ],
      )
      self.assertEqual(
          list_op,
          [
              "multiply(n2,const_100)",
              "multiply(n0,n1)",
              "divide(#0,#1)",
              "multiply(#2,const_100)",
              "divide(#3,#1)",
          ],
      )
      self.assertEqual(list_num, [3.0, 10.0, 36.0])
  
imports: import collections
  import os
  from unittest import mock
  import gin
  import numpy
  from t5.data import assert_dataset
  from t5.data import preprocessors
  import tensorflow
  import tensorflow_datasets
  from trax.data import inputs
  from trax.data import tf_inputs
label_desc: Use image node_id 26 for calling the TFInputsTest obj's underlying member method code with example usage: obj.test_process_single_mathqa_example_0() without return types