Endpoint: /system/diagnostics.json

        Runs a set of diagnostic tests on the server.
        Returns a dictionary containing the results.

def diagnostics(self, **kwds):
        """
        Endpoint: /system/diagnostics.json

        Runs a set of diagnostic tests on the server.
        Returns a dictionary containing the results.
        """
        # Don't process the result automatically, since this raises an exception
        # on failure, which doesn't provide the cause of the failure
        self._client.get("/system/diagnostics.json", process_response=False,
                         **kwds)
        return self._client.last_response.json()["result"]