'Calls Impala HS2 API\'s GetRuntimeProfile method on the given query handle
:return: TExecSummary object serialized as a dict'

def get_runtime_profile(self, operation_handle, session_handle):

    req = ImpalaHiveServer2Service.TGetRuntimeProfileReq(operationHandle=operation_handle, sessionHandle=session_handle)
    try:
        self.close_operation(operation_handle)
    except QueryServerException as e:
        LOG.warn('Failed    to    close    operation    for    query    handle,    query    may    be    invalid    or    already    closed.')
    resp = self.call(self._client.GetRuntimeProfile, req)
    return resp.profile
