code: def isfileobj(f):
      if not isinstance(
          f, (io.FileIO, io.BufferedReader, io.BufferedWriter)
      ):
          return False
      try:
          # BufferedReader/Writer may raise OSError when
          # fetching `fileno()` (e.g. when wrapping BytesIO).
          f.fileno()
          return True
      except OSError:
          return False
  
imports: import io
  import os
  import pickle
  import warnings
  import numpy
  from numpy.lib._utils_impl import drop_metadata
label_desc: Use image node_id 20 for calling a global function with example usage: isfileobj(f) and returns: False, True, False