def METHOD_NAME(self, cmd, shell=False):
    """
    Executes command locally. Raises Assertion error for non-zero return code.
    Returns stdout and stderr
    """
    proc = subprocess.Popen(
        cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, shell=shell
    )
    raw_out, raw_err = proc.communicate()
    out = raw_out.decode()
    err = raw_err.decode()
    self.assertEqual(proc.returncode, 0, msg=f"stdout: {out} stderr: {err}")
    return out.strip(), err.strip()