code: def test_pandas_confusion_binary_cm_inverse(self):
      y_true = [
          True,
          True,
          False,
          False,
          False,
          True,
          False,
          True,
          True,
          False,
          True,
          False,
          False,
          False,
          False,
          False,
          True,
          False,
          True,
          True,
          True,
          True,
          False,
          False,
          False,
          True,
          False,
          True,
          False,
          False,
          False,
          False,
          True,
          True,
          False,
          False,
          False,
          True,
          True,
          True,
          True,
          False,
          False,
          False,
          False,
          True,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          True,
          False,
          True,
          False,
          True,
          True,
          True,
          False,
          False,
          True,
          False,
          True,
          False,
          False,
          True,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          False,
          True,
          True,
          True,
          True,
          False,
          False,
          True,
          False,
          True,
          True,
          False,
          True,
          False,
          True,
          False,
          False,
          True,
          True,
          False,
          False,
          True,
          True,
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          True,
          False,
      ]
  
      y_pred = [
          False,
          False,
          False,
          False,
          False,
          True,
          False,
          False,
          True,
          False,
          True,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          True,
          True,
          True,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          False,
          False,
          False,
          False,
          True,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          False,
          False,
          False,
          False,
          True,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          False,
          False,
          True,
          False,
          False,
          False,
          False,
          True,
          False,
          True,
          True,
          False,
          False,
          False,
          True,
          False,
          False,
          True,
          True,
          False,
          False,
          True,
          True,
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          False,
          False,
      ]
  
      binary_cm = ConfusionMatrix(y_true, y_pred)
      assert isinstance(
          binary_cm, pdml.confusion_matrix.BinaryConfusionMatrix
      )
      bcm_sum = binary_cm.sum()
  
      binary_cm_r = binary_cm.inverse()  # reverse not in place
      assert bcm_sum == binary_cm_r.sum()
  
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 12 for calling the TestConfusionMatrix obj's underlying member method code with example usage: obj.test_pandas_confusion_binary_cm_inverse() without return types