code: def from_filename(file_name):
      
      base, extension = os.path.splitext(file_name)
      if extension in COMPRESS_EXT:
          # Compressed file
          extension = os.path.splitext(base)[1]
      return from_extension(extension)
docs: Look up the BioPython file type corresponding to an input file name.