def METHOD_NAME(cmd):
    # type: (str) -> str
    process = subprocess.Popen(
        cmd.split(),
        cwd=_SCAPY_PKG_DIR,
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE
    )
    out, err = process.communicate()
    if process.returncode == 0:
        return out.decode().strip()
    else:
        raise subprocess.CalledProcessError(process.returncode, err)