code: def get_id(page):
      """Extract the id from a page.
  
      Args:
        page: a string
      Returns:
        an integer
      """
      start_pos = page.find("<id>")
      end_pos = page.find("</id>")
      assert start_pos != -1
      assert end_pos != -1
      start_pos += len("<id>")
      return int(page[start_pos:end_pos])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import os
  import random
  import re
  import subprocess
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import text_encoder
  import tensorflow.compat.v1
label_desc: Use image node_id 5 for calling a global function with example usage: get_id(page) and returns: int