def METHOD_NAME(node, cmd):
    ret = node.container.exec_run(cmd.split())
    if ret.exit_code:
        logger.error(
            'Container exec_run failed, cmd = %r, result = %r', cmd, ret,
        )
        raise RuntimeError('Failed to create node')