code: def _page_to_title(page):
      """Extract the title from a page.
  
      Args:
        page: a unicode string
      Returns:
        a unicode string
      """
      # print("page=%s" % page)
      start_tag = "<title>"
      end_tag = "</title>"
      start_pos = page.find(start_tag)
      end_pos = page.find(end_tag)
      assert start_pos != -1
      assert end_pos != -1
      start_pos += len(start_tag)
      return page[start_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 2 for calling a global function with example usage: _page_to_title(page) and returns: page