code: def _file_lines(fname):
      """Return the contents of a named file as a list of lines.
  
      This function never raises an IOError exception: if the file can't be
      read, it simply returns an empty list."""
  
      try:
          outfile = open(fname)
      except IOError:
          return []
      else:
          out = outfile.readlines()
          outfile.close()
          return out
  
imports: from __future__ import print_function
  import bdb
  import functools
  import inspect
  import sys
  import warnings
  from IPython import get_ipython
  from IPython.utils import PyColorize, ulinecache
  from IPython.utils import coloransi, py3compat
  from IPython.core.excolors import exception_colors
  from IPython.testing.skipdoctest import skip_doctest
  from pdb import Pdb
label_desc: Use image node_id 5 for calling a global function with example usage: _file_lines(fname) and returns: out, list