code: def from_handle(fh, stream_default='fasta'):
      
      if fh in (sys.stdin, sys.stdout, sys.stderr):
          return stream_default
      return from_filename(fh.name)
docs: Look up the BioPython file type corresponding to a file-like object.
  
      For stdin, stdout, and stderr, ``stream_default`` is used.