code: def test_process_single_mathqa_example_1(self):
      # This is the third problem in the MathQA dataset.
      example = {
          "Problem": "sophia finished 2 / 3 of a book . she calculated that she "
          "finished 90 more pages than she has yet to read . how long is her"
          " book ?",
          "Rationale": "let xx be the total number of pages in the book , then she "
          "finished 23 ⋅ x 23 ⋅ x pages . then she has x − 23 ⋅ x = "
          "13 ⋅ xx − 23 ⋅ x = 13 ⋅ x pages left . 23 ⋅ x − 13 "
          "⋅ x = 9023 ⋅ x − 13 ⋅ x = 90 13 ⋅ x = 9013 ⋅ x = 90 x"
          " = 270 x = 270 so the book is 270 pages long . answer : b",
          "options": "a ) 229 , b ) 270 , c ) 877 , d ) 266 , e ) 281",
          "correct": "b",
          "annotated_formula": "divide(90, subtract(const_1, divide(2, 3)))",
          "linear_formula": "divide(n0,n1)|subtract(const_1,#0)|divide(n2,#1)",
          "category": "general",
      }
  
      (
          answer_num,
          python_result,
          python_program,
          list_op,
          list_num,
      ) = tf_inputs.process_single_mathqa_example(example)
      self.assertEqual(
          answer_num, 270
      )  # we know it, because correct answer is b)
      self.assertAllClose(
          python_result,
          [0.6666666666666666, 0.33333333333333337, 269.99999999999994],
      )
      self.assertEqual(
          python_program,
          ["t0 = n0 / n1", "t1 = 1.0 - t0", "t2 = n2 / t1"],
      )
      self.assertEqual(
          list_op,
          ["divide(n0,n1)", "subtract(const_1,#0)", "divide(n2,#1)"],
      )
      self.assertEqual(list_num, [2.0, 3.0, 90.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 27 for calling the TFInputsTest obj's underlying member method code with example usage: obj.test_process_single_mathqa_example_1() without return types