code: def test_round_preserving_row_totals():
      mat = np.array(
          [
              [1.7, 1.8, 1.5],
              [1.1, 1.4, 1.5],
              [1.3, 1.3, 1.4],
          ]
      )
      mat_int = util.round_preserving_row_totals(mat)
      # Check that row sums are preserved
      assert np.all(mat_int.sum(axis=1) == mat.sum(axis=1))
  
imports: from cleanlab.internal import util
  import numpy
  import pytest
  from cleanlab.internal.label_quality_utils import get_normalized_entropy
  from cleanlab.internal.multilabel_utils import int2onehot, onehot2int
  from cleanlab.internal.util import num_unique_classes, format_labels, get_missing_classes
  from cleanlab.internal.validation import assert_valid_class_labels
label_desc: Use image node_id 12 for calling a global function with example usage: test_round_preserving_row_totals() without return types