def METHOD_NAME():
    # Expect that a failing command raises a BatchedCommandError in which the
    # return code and the last successful request is caught. In this case the
    # last successful request should be None.
    bc = BatchedCommand(
        cmd=py2cmd(
            """