code: def test_pandas_confusion_normalized(self):
      y_true = [2, 0, 2, 2, 0, 1, 1, 2, 2, 0, 1, 2]
      y_pred = [0, 0, 2, 1, 0, 2, 1, 0, 2, 0, 2, 2]
      cm = ConfusionMatrix(y_true, y_pred)
      assert isinstance(
          cm, pdml.confusion_matrix.LabeledConfusionMatrix
      )
  
      df = cm.to_dataframe()
      df_norm = cm.to_dataframe(normalized=True)
      assert df_norm.sum(axis=1).sum() == len(df)
  
imports: import pytest
  import matplotlib
  import numpy
  import pandas
  import pandas_ml.util.testing
  import pandas_ml
  from pandas_ml import ConfusionMatrix
  from collections import OrderedDict
label_desc: Use image node_id 13 for calling the TestConfusionMatrix obj's underlying member method code with example usage: obj.test_pandas_confusion_normalized() without return types