code: def _get_text(path):
      """Return a string with the textual contents of a file at PATH."""
      fp = open(path, "r")
      try:
          return fp.read()
      finally:
          fp.close()
  
imports: import os
  import os.path
  import stat
  import sys
label_desc: Use image node_id 5 for calling a global function with example usage: _get_text(path) and returns: fp