code: def _supports_fileno(stream):
      """
      Returns True if 'stream' supports the file descriptor and allows fileno().
      """
      if hasattr(stream, "fileno"):
          try:
              stream.fileno()
              return True
          except IOError:
              return False
      else:
          return False
  
file_path: catboost/contrib/python/numpy/py2/numpy/distutils/exec_command.py
imports: from __future__ import division, absolute_import, print_function
  import os
  import sys
  import subprocess
  import locale
  from numpy.distutils.misc_util import is_sequence, make_temp_file
  from numpy.distutils import log
label_desc: Use image node_id 8 for calling a global function with example usage: _supports_fileno(stream) and returns: False, True, False