code: def read_whole_file(name, mode):
      if sys.version_info < (2, 4):
          if "r" in mode and "U" in mode:
              # python 2.3 returns file not found if "U" present!
              mode = "".join([m for m in mode if m != "U"])
      f = open(name, mode)
      try:
          return f.read()
      finally:
          f.close()
  
imports: import os
  import sys
  import shlex
  import glob
  import re
  import time
  import zipfile
  import tarfile
  from distutils.command import build_ext, build, sdist
label_desc: Use image node_id 2 for calling a global function with example usage: read_whole_file(name, mode) and returns: f