code: def extract_cpio (archive, compression, cmd, verbosity, interactive, outdir):
      
      cmdlist = [util.shell_quote(cmd), '--extract', '--make-directories',
          '--preserve-modification-time']
      if sys.platform.startswith('linux') and not cmd.endswith('bsdcpio'):
          cmdlist.extend(['--no-absolute-filenames',
          '--force-local', '--nonmatching', r'"*\.\.*"'])
      if verbosity > 1:
          cmdlist.append('-v')
      cmdlist.extend(['<', util.shell_quote(os.path.abspath(archive))])
      return (cmdlist, {'cwd': outdir, 'shell': True})
docs: Extract a CPIO archive.