code: def create_tar (archive, compression, cmd, verbosity, interactive, filenames):
      
      cmdlist = [cmd, '--create']
      add_tar_opts(cmdlist, compression, verbosity)
      cmdlist.extend(["--file", archive, '--'])
      cmdlist.extend(filenames)
      return cmdlist
docs: Create a TAR archive.