code: def get_revisions(page):
      """Extract the revisions of a page.
  
      Args:
        page: a string
      Returns:
        a list of strings
      """
      start_string = "    <revision>\n"
      end_string = "    </revision>\n"
      ret = []
      current_pos = 0
      while True:
          start_pos = page.find(start_string, current_pos)
          if start_pos == -1:
              break
          end_pos = page.find(end_string, start_pos)
          assert end_pos != -1
          ret.append(page[start_pos + len(start_string) : end_pos])
          current_pos = end_pos + len(end_string)
      return ret
  
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 6 for calling a global function with example usage: get_revisions(page) and returns: ret