code: def _page_to_text(page):
      """Extract the text from a page.
  
      Args:
        page: a unicode string
      Returns:
        a unicode string
      """
      # text start tag looks like "<text ..otherstuff>"
      start_pos = page.find("<text")
      assert start_pos != -1
      end_tag_pos = page.find(">", start_pos)
      assert end_tag_pos != -1
      end_tag_pos += len(">")
      end_pos = page.find("</text>")
      if end_pos == -1:
          return ""
      return page[end_tag_pos:end_pos]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import subprocess
  import numpy
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling a global function with example usage: _page_to_text(page) and returns: page, str