code: def _remove_compression_suffix_if_present(self, filename):
          
          for ext in [".gz", ".gzip", ".zip"]:
              if filename.endswith(ext):
                  return filename[:-len(ext)]
          return filename
docs: If the given filename ends in one of the compression suffixes that
          datacache knows how to deal with, remove the suffix (since we expect
          the result of downloading to be a decompressed file)