code: def checkForDuplicateInputs(rootnames):
      
  
      flist = []
      duplist = []
  
      for fname in rootnames:
          # Look for any recognized CTE-corrected products
          f1 = fileutil.buildRootname(fname,ext=['_flc.fits'])
          f2 = fileutil.buildRootname(fname)
          flist.append(f2)
          if os.path.exists(f1) and f1 != f2:
              # More than 1 valid input found for this rootname
              duplist.append(f1)
  
      return flist,duplist
docs: Check input files specified in ASN table for duplicate versions with
      multiple valid suffixes (_flt and _flc, for example).