docs: def validate_cmd_response_int(name, got, expected):
      """
      Check that some value returned in the response to a command matches what
      we put in the request (the command).
      """
      if got != expected:
          raise(pyhsm.exception.YHSM_Error("Bad %s in response (got %i, expected %i)" \
                                               % (name, got, expected)))
      return got