def METHOD_NAME(self, exclude_patterns=None):
    """
    """
    exclude_patterns = exclude_patterns or []
    exclude_patterns.append("*debug")  # do not unpack debug dir
    # python 2 does not support lzma
    command = [
        'tar', '-xf', self.path,
        '-C', self.output_dir,
        '--wildcards',
        '--wildcards-match-slash',
    ]
    if exclude_patterns:
        # do NOT quote pattern! it won't work
        command += ['--exclude=' + p for p in exclude_patterns]
    logger.debug('Running command %s', command)
    subprocess.check_call(command)