code: def _remove_references(text):
      """Strip out references from wikipedia xml."""
      return _find_and_replace(
          text, "&lt;ref", "&lt;/ref&gt;", lambda s: ""
      )
  
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 5 for calling a global function with example usage: _remove_references(text) and returns: _find_and_replace