code: def file_variations(filename, extensions):
      
      (label, ext) = splitext(filename)
      return [label + extention for extention in extensions]
docs: Create a variation of file names.
  
      Generate a list of variations on a filename by replacing the extension with
      a the provided list.
  
      :param filename: The original file name to use as a base.
  
      :param extensions: A list of file extensions to generate new filenames.